Display the multiplication table of a number upto 10.

#include <stdio.h>

int main(void)
{
int cnt, num;

cnt = 1;

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

while(cnt <= 10)
{
printf("\n%d X %d = %d", num, cnt, num * cnt);
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