This code is very impotent for you , if you want to add two float numbers . In this programmer user input two number and output will be sum of two numbers . Sometimes we face some problem between %d and %f. In this code we try to solve this problem.
#include<stdio.h>
int main()
{
float a,b,c;
a=5.5; //a and b is float number
b=10.5;
c=a+b;
printf("Sum of the value is = %f",c); // for float number we use %f
return 0;
}
Comments
Post a Comment