Computer Science, asked by Arvind97680, 11 months ago

//sum.cpp
//sum of two numbers
#include
#include
void main()
{
clrscr();
int a, b, sum;

cout << "Enter two integers: ";
cin >> a >> b;

sum=a+b;

cout << "sum= " << "sum"
getch();
}
this was my programme
please tell me the error in the programme I had provided the image which is shown after compile and run

Attachments:

Answers

Answered by Anonymous
5

Hey mate

#include

#include#include

#include#includevoid main()

#include#includevoid main(){

#include#includevoid main(){ clrscr();

#include#includevoid main(){ clrscr(); int a, b, sum;

#include#includevoid main(){ clrscr(); int a, b, sum; cout << "Enter two integers: ";

#include#includevoid main(){ clrscr(); int a, b, sum; cout << "Enter two integers: "; cin >> a >> b;

#include#includevoid main(){ clrscr(); int a, b, sum; cout << "Enter two integers: "; cin >> a >> b; sum=a+b;

#include#includevoid main(){ clrscr(); int a, b, sum; cout << "Enter two integers: "; cin >> a >> b; sum=a+b; cout << "sum= " << sum;

getch();

}

this is right

@Abhi.

Similar questions