C program for average of two numbers
Answers
Answered by
1
CODE:
#include <stdio.h>
int main(void){
float num1,num2,avg;
printf("Enter the first number ");
scanf("%f",&num1);
printf("Enter the second number ");
scanf("%f",&num2);
avg=(num1+num2)/2;
printf("Average of two numbers = %4.2f", avg);
return 0;
}
ramlakshman97:
thank u sir.....plz give me answer..what is sorting &searching in c
Similar questions