🔒 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;

}
 
eto oh
 

Attachments

  • 23.jpg
    23.jpg
    27.9 KB · Views: 1
#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

Online now

Members online
993
Guests online
1,061
Total visitors
2,054

Forum statistics

Threads
2,276,172
Posts
28,968,039
Members
1,231,153
Latest member
taengdaga
Back
Top