Saturday, February 1, 2020

Float Addition

#include<stdio.h>
#include<conio.h>
int main()
{
   float f1,f2;
   int total;

   printf("Enter your floating point number1:");
   scanf("%f",&f1);

   printf("Enter your floating point number2:");
   scanf("%f",&f2);

   total = f1 + f2;

   printf("Total is: %d ",total);
getch();
}

No comments:

Post a Comment