C++ Program that Add Sum of Two numbers using two function - 6 Players blogs for technology

give us your feedback

People Online

Breaking

ads

Post Top Ad

Thursday, October 24, 2019

C++ Program that Add Sum of Two numbers using two function


C++ Program that Add Sum of Two numbers using two function 


#include <iostream>

using namespace std;
int sum(int a,int b);
int main()
{
 int x;
 int a,b;
cout<< " Enter the first Number : ";
cin>>a;
cout<< " Enter the first Number : ";
cin>>b;


 x=sum(a,b);

cout<< a<<" + " <<b<<" = "<<x<<endl;
    return 0;
}
int sum(int a, int b){
int c = a+b;

return c;

}




No comments:

Post a Comment

ads1

Post Top Ad