Computer Science, asked by priyankamarick2013, 3 months ago

write a program to enter any three numbers and print their sum and average.​

Answers

Answered by KishanKumar0001
1

Answer:

#include<stdio.h>

void main()

{

int a,b,c,sum;

float avg; printf("Enter 3 Numbers"); scanf(%d%d%d,&a,&b,&c);

sum = (a+b+c);

avg = sum/3;

printf("Sum Of 3 Numbers Is : \t %d",sum); printf("Average Of 3 Numbers Is : \t %f",avg);

}

Explanation:

Thanks...

Please Rate My Answer As Brainliest...

Answered by Anonymous
1

Answer:

hello,

its using python

Explanation:

#program to enter any three numbers and print their sum and average.​

a=int(input("enter the number"))

b=int(input("enter the number"))

c=int(input("enter the number"))

sum=a+b+c

avg=sum/3

print("average=",avg)

print("sum=",sum)

__________________________________________________

average=sum of all the digits/total number of digits

________________________________________________

hope it helps you

please mark brainliest

@ItzSnowySecret07

Similar questions