Computer Science, asked by ramlakshman97, 1 year ago

C program for average of two numbers​

Answers

Answered by bangbold
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
ramlakshman97: what is sorting & searching is the question
Similar questions