Computer Science, asked by pavani2451, 1 year ago

write a C++ Program to input three numbers and find the sum​

Answers

Answered by Aashu213
2

Program →

// made by Aashutosh tiwari

#include <iostream>

using namespace std;

int main()

{

int a,b,c;

int sum;

cout<<"please enter a number \n";

cin>>a;

cout<< a << endl;

cout<< "please enter a number \n";

cin >>b;

cout << b <<endl;

cout<<"please enter a number \n";

cin >>c;

cout<< c <<endl;

cout<<"sum of a,b and c is \n";

sum=a+b+c;

cout <<sum;

return 0;

}

/*hope you like it

here it is error free

thanks*/

Similar questions