Don't put ; after main() also cout "\n" is wrong. Use cout<<"\n"
Code:#include <iostream.h> int main() { int x=5; int y=7; cout<< "\n"; cout << x + y << " " << x * y; cout<< "\n"; return 0; }
[Edited by Vlatko on 11-16-2000 at 12:22 PM]
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |