Search This Blog

Friday, April 22, 2011

CODE 01


//GAURAV MITTAL(2K9/EE/830)
//QUESTION 1. Addition of two numbers

#include
#include

int main ()
{
float a,b,c;
printf("ADDITION OF TWO NUMBERS");
printf("\nEnter first number : ");
scanf("%f",&a);
printf("\nEnter second number : ");
scanf("%f",&b);
c=a+b;
printf("\nThe sum of two numbers is : %f",c);
getch();
return 0;
}

No comments:

Post a Comment