🔒 Closed Pa check po if tama code ko

Status
Not open for further replies.
Code:
#include <iostream> //iostream is a preprocessor directive also known as input/output stream that necessary if you want to make use of input such as "cin" or output such as "cout"

#include <conio.h> //conio.h is a preprocessor directive a Borland / MS specific header that contained console I/O functionality, and is not part of the standard. and if you want to use "getch" to pause the application before it terminates.

using namespace std;

int main()
{
//Variable declaration and initialization of temporary values; It is very necessary for you to declare the variable first before using it in a process
int a= 5;
int b = 9;
int sum=0;

sum=a+b; //this is the aforementioned process;
cout <<"The sum of"<<a<<" and "<<b<<" is "<<sum;

return 0;
getch();
}
 
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
689
Guests online
805
Total visitors
1,494

Forum statistics

Threads
2,276,541
Posts
28,970,697
Members
1,230,370
Latest member
g e n t o
Back
Top