Computer Science, asked by sukhpreetkaurs18, 4 months ago

Write a pregram to find averge of three
numbers.​

Answers

Answered by Anonymous
1

Answer:

#include <stdio.h>

#include <conio.h>

void main()

{

int n1,n2,n3;

float avg;

clrscr();

printf("\nENTER THREE NUMBERS: " );

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

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

printf("\nAVERAGE: %0.2f",avg);

getch();

Similar questions