Advertisement
fachiul

confusion about n*i

Apr 6th, 2015
1,317
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement