answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

float avrg;

printf("enter the first number:");

scanf("%d",&a);

printf("enter the second number:");

scanf("%d",&b);

printf("enter the third number:");

scanf("%d",&c);

avrg=(a+b+c)/3.0;

printf("The average of given numbers is:%f",&f);

getch();

}

this c program is specifically for three variables only.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


How do you write the average n numbers program in c language?

Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you. no i am asking to verify my answer


Write an assembly language program to multiply two BCD numbers?

fish


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


Write a programme for substraction of two numbers in c language?

substracion of any two number program in c


How can you write a program to find the mean resistance in c language given the values of 8 resistances?

"Mean" usually means "average", so you just add the numbers together, then divide by 8.


Write a program in C language to multiply any two numbers without using in source code?

The question is malformed and incomprehensible.


Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


How do you Write a program in 'c' language which accepts int numbers from the users print its reverse number x function which return value?

question clarity


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


Can you write program by c language in dos?

Yes.