//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