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