Computer Science, asked by punimdive, 3 months ago

write a program in basic to find the average of three number ​

Answers

Answered by meghasharma1072005
2

Answer:

To compute the average of three given numbers using C

#include <stdio.h>

#include <conio.h>

void main()

int n1,n2,n3;

float avg;

printf("\nENTER THREE NUMBERS: " );

scanf("%d %d %d",&n1,&n2,&n3);

avg=(n1+n2+n3)/3;

More items...

Similar questions