C programming
Saturday, May 22, 2010
Write a Programe to Add two Digits
#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b,c;
clrscr ();
printf("Enter the number "); //For eg. 2+2//
scanf("%d%d",&a,&b);
c=a+b;
printf("Answere is %d",c); //Answer is 4 //
getch ();
}
1 comment:
veD_DeXTer
May 27, 2010 at 11:51 AM
instead of Integer. define it ias Float. U vl hav addition of 2 decimal points also then
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Home
Subscribe to:
Post Comments (Atom)
instead of Integer. define it ias Float. U vl hav addition of 2 decimal points also then
ReplyDelete