Jump to content

Recommended Posts

Posted

#include <iostream.h>

int main()

{

int x = 5;

int y = 7;

cout "\n";

cout << x + y << " " << x * y;

cout "\n";

cin.get();

return 0;

}

 

What is the wrong and i cant run the program/compile?:(:(

Posted

Heh, you forgot the "<<" symbols.

 

#include <iostream>
using namespace std;
int main()
{
int x = 5;
int y = 7;
cout << "\n";
cout << x + y << " " << x * y;
cout << "\n";
cin.get();
return 0;
}

 

plus I changed the library.

Guest
This topic is now closed to further replies.


×
×
  • Create New...