Advertisement
fachiul

confusion about n*i

Apr 6th, 2015
2,818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.15 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int m, i, n = 5;
  6.     m = 0;
  7.     for(i=1;i<=10;i=i+1){
  8.         m=m+n;
  9.         printf("%d X %d=%d\n",n,i,m);
  10.     }
  11.     return 0;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement