Guest User

Untitled

a guest
Apr 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. int _tmain(int argc, _TCHAR* argv[])
  2. {
  3.     int is=0,in,i=0;
  4.     printf("nhap vao so n: ");
  5.     scanf("%d",&in);
  6.     while(i++ < in)
  7.     {
  8.         if (i<in)
  9.             printf("%d<%d\n\n",i,in);
  10.         printf("i la: %d\n",i);
  11.         printf("is la: %d + %d = ",is, i);
  12.         is = is + i;
  13.         printf("%d\n\n",is);
  14.     }
  15.  
  16.     return 0;
  17. }
Add Comment
Please, Sign In to add comment