Computer Science, asked by gurbhej98singh, 9 months ago

1. Write a program to print multiplication table of any number? Sample output

Answers

Answered by queensp73
2

Answer:

/*

* 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;

}

Explanation:

hope it helps u

:)

Similar questions