[text] c

Viewer

  1. #include<stdlib.h>
  2. #include<stdio.h>
  3.  
  4. int main(int argc,char* argv[])
  5. {
  6.         int a=atoi(argv[1]);
  7.         int b =atoi(argv[2]);
  8.         int c=0;
  9.  
  10.          while(b>=a)
  11.         {
  12.                 b=b-a;
  13.                 c=c+1;
  14.         }
  15.        
  16.       
  17.        printf("\nc = %d\n",c);
  18.        printf(" ");
  19.        printf("\nb = %d",b);
  20.        
  21. return 0;
  22. }
  23.  

Editor

You can edit this paste and save as new:


File Description
  • c
  • Paste Code
  • 25 Sep-2021
  • 291 Bytes
You can Share it: