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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock