Sum of Two Numbers in C

Previous
Next
#include<stdio.h>
int main()
{
	float a,b,sum ;
	printf("Enter 2 numbers :\n");
	scanf("%f%f" , &a, &b);
	sum=a+b;
	printf("Sum is : %f \n", sum);
	return 0;
}
Previous
Next

Add Comment

Courses Enquiry Form