Martes, Marso 7, 2017

ACT11

#include <iostream>
    #include<string>
    using namespace std;

  int main(){

int num1,num2,sum,deff,prod,quo;

cout<<"Subject title:programming languange";
cout<<"\n";
cout<<"Subject code:cs242";
cout<<"\n";
cout<<"name:Anthony Diaz";
cout<<"\n";
cout<<"Activity:11";
cout<<"\n";
cout<<"instructor:Clinton reducto\n\n";


cout << "Enter two integers:";
cin >> num1 >>num2;
cout<<"\n\n\n";


sum = num1 + num2;
deff = num1 - num2;
prod = num1 * num2;
quo = num1 / num2;

cout << "\nThe sum of two numbers:"<<sum;

cout << "\nThe defference of two numbers:"<<deff;

cout << "\nThe product of the two numbers:"<<prod;

cout << "\nThe quotient of the two numbers:"<<quo;
cout<<"\n\n\n";
cout<<"\n\n\n";




 return 0;



    }

Walang komento:

Mag-post ng isang Komento