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