Â
In this, we are going to see how to add two numbers with the help of C++ program.
The Code given below can be used in Turbo C++ Compiler.
// Addition of two numbers
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a = 22;
int b = 55;
int c = a + b;
cout<<"Addition of a and b is : "<<c;
getch();
}
// Addition of two numbers
#include<iostream>
using namespace std;
int main()
{
int a = 22;
int b = 55;
int c = a + b;
cout<<"Addition of a and b is : "<<c;
return 0;
}
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP