Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Final Program HCP
Language: C/C++
Code:

#include <iostream>

using namespace std;

int main()
{
 
   return 0; int a,b,c;
   while( c > 1) )
     cout << "Enter two numbers" << endl;
     cin >> a >> b;
 c=a+b; 
    cout << "Sum of two numbers are" << c;
    cout << c << endl;
 c=b-a;
     cout << "The difference of two numbers is" << c << endl; 
     
     c= a * b
     cout << "The product of two numbers is" << c;
     cout << c << endl; 
     
     c= b/a
     cout << "The quotient of two numbers is" << c;
     cout << c << endl; 
   
    c= a^b 
cout << "The answer is" << c;
cout << c << endl;
     }
Comments: