What's new

Closed Pa check po if tama code ko

Status
Not open for further replies.

Jmrie_

in memoriam 1995-2021
Joined
Aug 21, 2017
Posts
104,956
Solutions
1
Reaction
53,216
Points
27,061
Age
28
#include <iosstream>

using namespace std;

int main()
{

int a= 5;
int b = 9;

int sum = a + b;

cout << sum;

return 0;

}
 
#include < iostream.h >

int main()
{
int a=5, b=9, sum;

cout<<"Enter two integers to add\n";
cin>>a>>b;

sum = a+b;


cout<<"Sum of entered numbers ="<<sum<<"\n";

return 0;
}
 
Visual studio ba gamit mo ts? tingnan mo ang preprocessor directive mo invalid ang syntax sobra ng "s" ang "iostream" mo bago ka gumamit ng variable better na e declare mo muna bago ka maglagay ng process gaya ng "int sum=a+b" .. add ka ng another preprocessor directive na conio.h pra ka gamit ka ng "getch()" pra ma hold yung display mo...
 
Visual studio ba gamit mo ts? tingnan mo ang preprocessor directive mo invalid ang syntax sobra ng "s" ang "iostream" mo bago ka gumamit ng variable better na e declare mo muna bago ka maglagay ng process gaya ng "int sum=a+b" .. add ka ng another preprocessor directive na conio.h pra ka gamit ka ng "getch()" pra ma hold yung display mo...
nalito ako bigla sir
 
Status
Not open for further replies.

Similar threads

Back
Top