Saturday, 11 August 2012

Write a program which gives addtion of 3 numbers.


Open TC.exe
Click on File and then Click on New.
then type.

#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b,c,d ;
clrscr ();
printf("Enter any three number");
scanf("%d%d%d%d",&b,&c,&d);
a=b+c+d
printf("Total sum = %d",a);
getch();
}

cprogramminglanguagehistory.blogspot.com
cprogramminglanguagehistory.blogspot.com
result:
cprogramminglanguagehistory.blogspot.com
cprogramminglanguagehistory.blogspot.com

No comments:

Post a Comment