Simple c program to add two numbers

Program

#include<iostream.h>
void main()
{
int a,b;
printf("enter two numbers\n");
scanf("%d%d",&a,&b);
printf("the sum is"a+b);
}


Output

enter two numbers
5
6
the sum is 11

Comments

Popular posts from this blog

Optical Charactor Recognition (OCR) in C#

How to create a transparent window in Windows Form Application

Installing MASM on Windows (32 bit or 64 bit)