Make a flow - chart and also
program in c language to print
the multiplication table for 7, 8, 9
Answers
Answered by
5
Answer:
#include <stdio.h>
int main()
{
int a = 7 , b = 8 , c = 9;
printf("Tables of 7: \n");
for(int i = 1; i <= 10; i++){
printf("%d x %d = %d \n" , a , i , (a*i));
}
printf("Tables of 8: \n");
for(int i = 1; i <= 10; i++){
printf("%d x %d = %d \n" , b , i , (b*i));
}
printf("Tables of 9: \n");
for(int i = 1; i <= 10; i++){
printf("%d x %d = %d \n" , c , i , (c*i));
}
return 0;
}
Explanation:
Similar questions