Program to find multiplication of two numbers.

C Programming Language / Fundamentals of C Language

3449

Program:

#include"stdio.h"
 
 void main()
	{
        // declare variable
	int num1, num2, multiResult; 

        // take input from user
	printf("Enter two no: ");
 	scanf("%d%d",&a,&b);
        
         // multiplication operation
	multiResult = a * b;

         // print result
       printf("Multiplication result=%d \n", multiResult);
    
}

Output:

Enter two no: 8 3
Multiplication result=24
Press any key to continue . . .

Explanation:

Algorithm

  • Step 1: Start
  • Step 2: Declare variable number 1, number 2 and multiResult
  • Step 3: Read Variable number 1, number 2
  • Step 4: Perform operation (subResult = num1 * num2)
  • Step 5: Print multiResult variable
  • Step 7: Stop

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.