#include <stdio.h>
main()
{
float a,b,sum;
printf("enter the first number:\n");
scanf("%f",&a);
printf("enter the second number:\n");
scanf("%f",&b);
sum= (a+b)/2;
printf("enter the average of two float number = %f",sum);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: