[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. printf("b is %d",b);
  17. printf("c is %d",c);
  18.         return 0;
  19. }
  20.  

Editor

You can edit this paste and save as new:


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