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
scZoUnD [109]
3 years ago
15

This program will get you used to retrieving a value from a function. The function should be named getRandomNumber. The function

should return a single random integer from 1 to 100. From within main, you will declare an integer variable named rnd. Then you will assign a value into rnd from the getRandomNumber function. After you have done this, you will use a printf and show the random number that was returned. The prograrm should be named GetRandom--don't forget to rename main.c to GetRandom.c before turning in.
In this program you will create a function that returns PI. The function should be named getPI that returns a float. From within main, declare a float named myPI. Assign myPI from the getPI function. Then use printf to show the value that you got.
Computers and Technology
1 answer:
Sati [7]3 years ago
6 0
Adhdubsus. Wish sheets
You might be interested in
PLEASE HELP!!
shtirl [24]
Because t=1/f. So. Do you know ? B
4 0
2 years ago
2.Any new class you create from an existing class is called a(n) ____.
trasher [3.6K]

Answer:

derived class

Explanation:

8 0
2 years ago
Assume that the int variables i and j have been declared, and that n has been declared and initialized. using for loops (you may
olga_2 [115]
You should really state what language you're using. Here it is easily produced in C#, and shouldn't be too much of a hassle to translate to other languages. Note that I did not need to use the iterative variable ( j ), and could instead just use ( i ) in one for loop.

Console.Write("Enter size of triangle: ");           
int n = Convert.ToInt32(Console.ReadLine());         
for (int i = n - 1; i >= 0; i--)               
    Console.WriteLine(new String('*', n - i));
3 0
3 years ago
Which of the following is an extension of the fill pattern Sunday,Tuesday?
Maru [420]
The answer to your question is Thursday, Saturday, Monday.
7 0
3 years ago
If your computer won't connect to the internet, which of these is most likely to be the problem?
Gemiola [76]

Answer:

nic is the answer.... .....

6 0
2 years ago
Other questions:
  • What will be returned when the following SQL statement is executed?
    5·2 answers
  • What are the advantages and disadvantages of the simulated link strategy?
    11·1 answer
  • What are the most popular/up-and-coming social media applications?
    10·2 answers
  • Many people object to increased cybersecurity because _____.
    12·2 answers
  • With the ease of the Internet, it is not uncommon for individuals to copy skills from resume templates to make themselves look m
    9·1 answer
  • Which amendment to the Constitution ended slavery in the United States?
    8·1 answer
  • Which of the following will print I'VE GOT THIS on the screen? (5 points)
    14·1 answer
  • Guyssss......urgent helppp plsss answerrrr
    5·1 answer
  • Does anyone know how to change there Name of the account that shows up? If you do please tell me in a comment and/or Answer.
    6·2 answers
  • How do we distinguish between remote and local information sources? give an example of each source? i'll give brainliest answer
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!