Write a C program to add two numbers where a=10, b=20
Answers
Answered by
2
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a=10,b=20,s;
s=a+b;
cout<<"Sum : "<<s;
getch();
}
OUTPUT :
Sum : 30
#include<conio.h>
void main()
{
clrscr();
int a=10,b=20,s;
s=a+b;
cout<<"Sum : "<<s;
getch();
}
OUTPUT :
Sum : 30
Similar questions