Tahamina_Taha

times table using for loop

Aug 6th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,i;
  5.  
  6.     printf("please enter your times table no: \n",n);
  7.         scanf("%d",&n);
  8.  
  9.     printf("please enter beginning number of  times table: \n",i);
  10.         scanf("%d",&i);
  11.  
  12.     for(;n<=12;n=n+1){
  13.         for(;i<=13;i=i+1){
  14.             printf("%d X %d =%d\n",n,i,n*i);
  15.         }
  16.     }
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment