C Program to multiply two numbers

Description

Get two integer numbers, multiply both the integers and dispaly the product.
Sample Input 1:
5 6
Sample Sample Output 1:
30
Input2:
65 10
Output2:
650

Solution

//Program to Multiplication of two numbers
#include<stdio.h>
int main()
{
	int num1,num2,product;
	printf("Enter two numbers:");
	scanf("%d %d",&num1,&num2);
	product=num1*num2;
	printf("Product of two numbers: %d",product);
	return  0;
}

Explanation

Get two integers a and b (using scanf statement)
multiply a and b, then store the product in c (c=a*b)
print the value of c (using printf statement)



Interesting Pattern Programs: for more Patterns

Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution
Input:
5
Output:
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *Solution
Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution
Input:
5
Output:
*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********Solution