Search This Blog

Wednesday, February 9, 2011

addition of two values

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;/*int is data type AND a and b is two variables */
printf("enter value for a and b=");
scnaf("%d%d",&a,&b");
printf("total of %d and %d  is=%d",a,b,a+b);
getch();
}

No comments:

Post a Comment