Ask a Teacher



c++ program to find the multiplication table of a number?

#include <stdio.h>
int main() {
int num, i = 1;
printf(" Enter any Number:");
scanf("%d", &num);
printf("Multiplication table of %d: ", num);
while (i <= 10) {
printf(" %d x %d = %d", num, i, num * i);
i++;
}
return 0; }


comments powered by Disqus