Computer Science, asked by abhay2611, 9 months ago

C program to find sum and average of three numbers

Answers

Answered by vaishnavik052
7

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

int n,sum=0,a,b,c;

printf("enter the3 numbers");

scanf(%d%d%d",&a,&b,&c);

sum=a+b+c;

avg=sum/3;

printf("\nsum of 3 numbers =%d",sum);

printf("\naverage of 3 numbers=%d",avg);

getch();

}

Explanation:

Similar questions