Question: Write a program that reads 2 integers and prints out their product in a format using commas, we have to use command user interface(CUI). Thank you very much for your help!! Here is what I have:
#include <iostream.h>
void main()
{
long int a; //first integer
long int b ; //second integer
long int c; //product
cout<< "Enter integer:";
cin>>a;
cout<<"Enter second integer:";
cin>>b;
c = a*b; //computes product
cout<<c<<endl; //print results with commas
}
#include <iostream.h>
void main()
{
long int a; //first integer
long int b ; //second integer
long int c; //product
cout<< "Enter integer:";
cin>>a;
cout<<"Enter second integer:";
cin>>b;
c = a*b; //computes product
cout<<c<<endl; //print results with commas
}