Advertisement
AedenCak3

Multiplaction table Using For loop

Nov 10th, 2021
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int base,i;
  5.     printf("enter base: ");
  6.     scanf("%d",&base);
  7.     for (i=1; i<=10; i++)
  8.         printf("%d x %d = %d\n",base, i,i*base);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement