Product of 2 integer numbers in C++
cout - Question 8
In this question, we will see how to print the product of 2 integer numbers in C++ programming using the cout statement. To know more about cout statement click on the cout statement lesson.
Q8) Write a program in C++ to find the product of 2 integer numbers like int a=4, b=8.
Program
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a=4, b=8;
cout<<"Product="<<a*b;
return 0;
}
Output
Product=32