Display the multiplication table of a number upto 10 .

#include <stdio.h>

int main(void)
{
int cnt, num;

printf("\nEnter a number :");
scanf("%d", &num);

for(cnt = 1 ; cnt <= 10 ; cnt++)
{
printf("\n%d X %d = %d", num, cnt, num * cnt);
}

return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin