C Program to calculate and print the product of three numbers

Problem In Hand

C Program to take input for three numbers calculate and print their product

Process and Solution Of Problem

  • Take input for three numbers and store them in three different variables
  • calculate and store product of the number in a fourth variable
  • further display the result

Program/Source Code

int main()
     int a,b,c,d;
     printf("Enter 1st no ");
     printf("Enter 2nd no ");
     printf("Enter 3rd no ");
     printf("Product = %d",d);
     return 0;

Program Explanation

On execution of the program

* user enteres the first number and it is stored in a variable “a”
* user enteres the second number and it is stored in a variable “b”
* user enteres the third number and it is stored in a variable “c”
* further calculation is performed and product of values stored in “a” ,”b” and “c” are stored in a variable “d” i.e. c=a*b*c;
* then the result is displayed on the screen


Enter 1st no 2
 Enter 2nd no 3
 Enter 3rd no 5
 Product = 30

You May Also Like:

C Program to find lowest of 3 numbers
C Program to print factorial of a number
C program to check number is even, odd or zero
C program to check a character is an alphabet or not
C program to convert total meters to km and m

<<< Previous: Sum Of Two NumbersSquare and Cube of a Number : Next >>>

All Programs      C Simple Programs      If Condition Programs      Switch Statement Programs      Loop Programs       Conversion Programs      Pattern Programs       Single Dimension Numeric Array programs       Double Dimension Numeric Array programs      Single Dimension Character Array programs


Technical Questions

Interview Questions

C Programming
C++ Programming
Class 11 (Python)
Class 12 (Python)
C Language
C++ Programming

C Interview Questions
C++ Interview Questions