Problem Analysis:
The problem is to calculate the product of two input integers a and b.The output of the program is to display the product given by the user. The product of two numbers can be calculated by;
c=a*b;
Input variables processing variables output variables Necessary header files.
a(int) c=a*b; c(int) stdio.h
b(int) conio.h
Algorithm:
1.Start
2. Input two integers given by the user i.e. a.b or int a,b;
3. Multiply the value of a and b and assign the result to c.
i.e. c=a*b.
4.Print the value of c.
5.End
Flow chart:
Codes:
Outputs:
Compiling, Debugging and Testing
Enter a and b : 5 10
5 * 10 =50