Addtion of Two Variable in C

Sunday, 28 August 2011


#include<stdio.h>
#include<conio.h>

void main()

{

int a,b,c;
clrscr();

printf("enter the value of a&b");
scanf("%d%d",&a,&b);

c=a+b;

printf("\nthe value of c is %d",c);

getch();

}




OUTPUT:


enter the value of a&b
4
5
the value of c is 9

No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading