Write a program to find average of three numbers


Asked by admin @ in Computer Science viewed by 334 People


Write a program to find average of three numbers.

Answered by admin @



Explanation:

#include <stdio.h>

int main()

{

int a,b,c;

float avg;

printf("\tEnter Three Numbers\n");

printf("--------------------------------\n");

printf("Enter First Number : ");

scanf("%d", &a);

printf("\nEnter Second Number : ");

scanf("%d",&b);

printf("\nEnter Third Number : ");

scanf("%d",&c);

printf("--------------------------------\n");

/* To find average*/

avg=a+b+c/3.0;

printf("\nAverage of Three Numbers : %f",avg);

return 0;

}

please make me brilianist


Similar Questions

Assembly language program to find the average of 3 numbers

Asked by admin @ in Computer Science viewed by 288 persons

Write an assembly language program to find the average of 3 numbers

Program to find greatest of three numbers in python

Asked by admin @ in Computer Science viewed by 339 persons

Write a program in python to find the greatest number among three numbers​

Program to find sum of two numbers in c++

Asked by admin @ in Computer Science viewed by 348 persons

Write a program in C++ to display the sum of two numbers 20 and 30.

Find numbers between 1 and 100 having exactly three factors

Asked by admin @ in Math viewed by 347 persons

Which are the numbers between 1 and 100 having exactly three factors

Write a program to split number into digits in java

Asked by admin @ in Computers and Technology viewed by 333 persons

Write a Java program that asks the user to enter a 10-digit string as a typical U.S. telephone number, extracts the 3-digit area code, the 3-digit "exchange," and the remaining …

How to find the average when a number is missing

Asked by admin @ in Mathematics viewed by 312 persons

The mean of six numbers is 6.8. Find two missing numbers that would make this true. 8.9 ? 12.4? 5.4? 3.2 ?​

How to find weighted average number of common shares outstanding

Asked by admin @ in Business viewed by 329 persons

In computing the weighted-average number of shares outstanding during the year, which of the followingmidyear events must be treated as if it had occurred at the beginning of the year?a. …

Find three rational numbers between 3 and 4

Asked by admin @ in Math viewed by 294 persons

Find three rational number between 3 and 4

Find three rational number between 3 and 4

Asked by admin @ in Math viewed by 323 persons

Find three rational number between 3 and 4

Find three consecutive even numbers whose sum is 96

Asked by admin @ in Math viewed by 380 persons

What is three consecutive even numbers whose sum is 96.

A programmer writes a program to find an element

Asked by admin @ in Computer Science viewed by 813 persons

A programmer writes a program to find an element in the array A[5] with the elements:8 30 40 45 70 the program is run to find a number X,that is …

Write any three rational numbers between 2 and 0

Asked by admin @ in Math viewed by 312 persons

Write any three rational number between -2 and 0

Find three consecutive even numbers whose sum is 234

Asked by admin @ in Math viewed by 380 persons

Find three consecutive even numbers whose sum is 234

Find three rational number between 1 4 and 1 3

Asked by admin @ in Math viewed by 308 persons

Find three rational number between 1/4 and 1/3

Find three rational numbers between 1 3 and 1 5

Asked by admin @ in Math viewed by 338 persons

Give three rational numbers lying between 1/3 and 1/5

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19016 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15794 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10964 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10397 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8716 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8127 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7837 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6480 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5785 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5684 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5471 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4977 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4967 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4680 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4483 persons