To find the Product of two variables in C++ programming

product.learnprogramming.com

Product of two variables:



#include < iostream >
using namespace std;
int main()
{
int a ;
int b ;
int product = 1 ;
a = 2 ;
b = 3 ;
product = a * b ;
cout << product << endl ;
return 0;
}

Comments

Popular posts from this blog

How to display the output in C++