sivan_iut

Untitled

Feb 19th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b;
  5.     scanf("%d%d",&a,&b);
  6.     int i,j;
  7.     int q,r;
  8.     int c,d;
  9.     c=a;
  10.     d=b;
  11.     for(i=1;i<b;i++)//a=2,b=3
  12.     {
  13.         q=a*c/i;
  14.     }
  15.      for(j=1;j<a;j++)
  16.     {
  17.         r=b*d/i;
  18.     }
  19.     int s=q-r;
  20.     printf("%d",s);
  21.  
  22.     return 0;
  23. }
Add Comment
Please, Sign In to add comment