#include <stdio.h>
#include <conio.h>
int main()
{
float a,b;
int c;
printf("Enter Number a\n ");
scanf("%f",&a);
printf("Enter num b \n");
scanf("%f",&b);
c=a+b;
printf("The sum is %d",c);
return 0;
}
The query has now been resolved ,thanks to the community at stack overflow ,I am a beginner in programming and have just started to learn c and didn't knew regarding this but now I have been banned to ask questions