MULTIPLICATION TABLE
Code :
#include<stdio.h>
int main()
{
int num, mult;
printf("Enter a number for multiplication table: ");
scanf("%d", &num);
printf("\n\t---------------------------\n");
printf("\t Multiplication Table Of %d\n", num);
printf("\t---------------------------\n");
for(int i=1; i<=10; i++)
{
mult = num * i;
printf("\t| %d x %d = %d |\n", num, i, mult);
printf("\t---------------------------\n");
}
printf("\t---------------------------\n");
return 0;
}
Come again Learn again !
< iCodeBuzz />
No comments:
Post a Comment