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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..