#include<iostream>
using namespace std;
int anik(int a, int b)
{
int sum = a + b;
return sum;
}
void anik(int a, int b, int c)
{
int s = a - b + c;
cout <<"Calculation :: " << s << endl;
}
int main()
{
int a, b, c, d;
cout << "Enter Three Number :: ";
cin >> a >> b >> c;
cout << endl;
d = anik(a, b);
cout << "Summation is :: " << d << endl << endl;
anik(a, b, c);
return 0;
}
using namespace std;
int anik(int a, int b)
{
int sum = a + b;
return sum;
}
void anik(int a, int b, int c)
{
int s = a - b + c;
cout <<"Calculation :: " << s << endl;
}
int main()
{
int a, b, c, d;
cout << "Enter Three Number :: ";
cin >> a >> b >> c;
cout << endl;
d = anik(a, b);
cout << "Summation is :: " << d << endl << endl;
anik(a, b, c);
return 0;
}
Comments
Post a Comment