🔒 Closed Pa check po if tama code ko

Status
Not open for further replies.

Jmrie_

in memoriam 1995-2021
Legendary
#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

About this Thread

  • 25
    Replies
  • 1K
    Views
  • 10
    Participants
Last reply from:
PHC-Sabina

Trending Topics

Online now

Members online
1,121
Guests online
4,010
Total visitors
5,131

Forum statistics

Threads
2,306,241
Posts
29,170,583
Members
1,194,733
Latest member
LivVetico
Back
Top