1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Crazy boy [7]
3 years ago
13

Write a C program to compute the average age of nth student

Computers and Technology
1 answer:
Hitman42 [59]3 years ago
3 0

Answer:

Following are the code in c language

#include <stdio.h> // header file  

int main() // main function

{

 int n1,i;

 float avg,x,s=0; // variable declaration

printf("\nEnter How many Number terms you want:");

 scanf("%d",&n1); // input terms by user

 for(i=0;i<n1;++i)

{

 scanf("%f",&x); // user input

s= s +x; //calculate sum

}

avg = s/n1;// calculate average of n number

printf("\nThe average of n number is:");

 printf("%f",avg); // display average

return 0;

}

Output

Enter How many Number terms you want:3

3

4

3

The average of n number is:3.333333

You might be interested in
question 5 you need to find the internet protocol (ip) address for a website. which command do you use on a windows system?
xz_007 [3.2K]

To find the internet protocol (ip) address for a website, the command that will be used is nslookup. The correct option is B.

<h3>What is nslookup?</h3>

A "network administration command line" program known as nslookup is used to learn about the Domain Name System (DNS) and to obtain the records for various domain names. It is mainly employed for DNS Server troubleshooting. Through domain names, we can access information on the Internet.

In the center of the Domain Name System are these names. Internet Protocol addresses are used by web browsers on the Internet to communicate with one another.

Therefore, the correct option is B, nslookup.

To learn more about nslookup, refer to the link:

brainly.com/question/14286524

#SPJ1

The question is incomplete. Your most probably complete question is given below:

A) Ipconfig B) Nslookup C) Ping D) Tracert

6 0
1 year ago
Text,Audio and graphic is entered into the computer using
Inessa [10]

Answer:

I think it's input, not sure tho

8 0
3 years ago
What is a spreadsheet program?<br> A spreadsheet program is a computerized version of_________.
BabaBlast [244]
I dont know what exact answer youre looking for because you didnt provide options but..
"A spreadsheet<span> is </span>a sheet<span> of paper that shows accounting or other data in rows and columns; </span>a spreadsheet<span> is also a </span>computer<span> application </span>program<span> that simulates a physical </span>spreadsheet<span> by capturing, displaying, and manipulating data arranged in rows and columns."</span>
3 0
4 years ago
Read 2 more answers
Which example best demonstrates an impact of computers on the economy?
Lana71 [14]

Answer:

a

Explanation:

7 0
3 years ago
In a non-price rationing system, consumers receive goods and services first-come, first served. Give me an example of a time whe
Anna35 [415]

When someone may be giving away something for free.

7 0
3 years ago
Other questions:
  • To create an individual version of a slide, you would click
    9·1 answer
  • How to reset your password if you changed your email and dont remember password?
    6·1 answer
  • That is Entrepreneur ? ?<br>​
    8·1 answer
  • Which of the following actions would help people determine their interests?
    11·1 answer
  • what aspect should you consider before adding pictures to a document? you should structure the first before you search for a rel
    15·2 answers
  • Differentiate between the broadcasting and telecommunication
    5·1 answer
  • A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. For example, 19 yields
    15·2 answers
  • ______allow you to select elements that are in a certain state, such as when the mouse if hovering over an element
    14·1 answer
  • The reason why our computers can get faster without getting bigger is because of...
    14·1 answer
  • b. Write a complete program for the following situation related to setting the speed of a car to preset values before starting a
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!