Showing posts with label Sum. Show all posts
Showing posts with label Sum. Show all posts

Sunday, April 29, 2018

Sum,Difference,Quotient,Product and Remainder in C++

A very  simple program to solve the Sum,Difference,Quotient,Product and Remainder in C++.

I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details.  If you want to advertise in my website kindly contact me also in my email address also. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.



Program Listing

math.cpp

#include<iostream>
#include<cstdlib>

using namespace std;

int main()
{
int x,y;
int s,d;

cout <<"Sum,Difference,Quotient,Product and Remainder in C++";
cout <<"\n\n";
cout<<"Enter x value: ";
cin>>x;
cout<<"Enter y value: ";
cin>>y;

    s = x + y;
    d = x - y;

    cout<<"\n sum        = "<<s
        <<"\n difference = "<<d
    <<"\n quotient   = "<<x/y
    <<"\n product    = "<<x*y
    <<"\n remainder  = "<<x%y
        <<endl;

    system("pause");
return 0;
}