Search This Blog

Print multiplication table of given number | c programming

Print multiplication table of given number

Problem

Read an integer value. print the numbers multiplication table.


Input

Input an integer value. 


Output 

Print the multiplication table of the given number.

 


Solution 




 #include<stdio.h>
int main()
{
    int n,i;
    scanf("%d",&n);
    for(i=1;i<=10;i++){
        printf("%d x %d = %d\n",n,i,n*i);
    }
    return 0;
}


 

No comments

Powered by Blogger.