Computer Science, asked by adarshkumarsingh7956, 2 months ago

1. Write a program to display the table of any number entered by the user.

Answers

Answered by Anonymous
3

Answer:

The program output is also shown below.

* C Program to Find & Display Multiplication table.

int number, i = 1;

printf(" Enter the Number:");

scanf("%d", &number);

printf("Multiplication table of %d:\n ", number);

printf("--------------------------\n");

while (i <= 10)

printf(" %d x %d = %d \n ", number, i, number * i);

Explanation:

HoPe It HeLp's UhH☺

⚘HaPpY PrOPoSe DaY⚘

❤LoVe UhH❤

Pls FlW Me pls ☹

Give me thnks ☹

✌ITZ AbUsiNg QuEeN✌

Answered by bivaspanda88
0

* C Program to Find & Display Multiplication table

*/

#include <stdio.h>

int main()

{

int number, i = 1;

printf(" Enter the Number:");

scanf("%d", &number);

printf("Multiplication table of %d:\n ", number);

printf("--------------------------\n");

while (i <= 10)

{

printf(" %d x %d = %d \n ", number, i, number * i);

i++;

}

return 0;

}

Similar questions