Write a program that computes and display the n! for any n in the range1...100​

Answers

Answer 1

Answer:

const BigNumber = require('bignumber.js');

var f = new BigNumber("1");

for (let i=1; i <= 100; i++) {

 f = f.times(i);

 console.log(`${i}! = ${f.toFixed()}`);

}

Explanation:

Above is a solution in javascript. You will need a bignumber library to display the numbers in full precision.


Related Questions

Custom function definitions:________.
A. Must be written before they are called by another part of your program
B. Must declare a name for the function
C. Must include information regarding any arguments (if any) that will be passed to the function
D. all of the above

Answers

Answer:

D. all of the above

Explanation:

A option is correct and function definition must be written before they are called by another part of your program. But in languages such as C++ you can write the prototype of the function before it is called anywhere in the program and later write the complete function implementation. I will give an example in Python:

def addition(a,b): #this is the definition of function addition

    c = a + b

    return c    

print(addition(1,3)) #this is where the function is called

B option is correct and function definition must declare a name for the function. If you see the above given function, its name is declared as addition

C option is correct and function definition must include information regarding any arguments (if any) that will be passed to the function. In the above given example the arguments are a and b. If we define the above function in C++ it becomes: int addition( int a, int b)

This gives information that the two variables a and b that are parameters of the function addition are of type int so they can hold integer values only.

Hence option D is the correct answer. All of the above options are correct.

Alice just wrote a new app using Python. She tested her code and noticed some of her lines of code are out of order. Which principal of programing should Alice review?

Answers

Answer:

sequencing

Explanation:

from flvs

Answer:

Sequencing

Explanation:

The state way of grading drivers is called what?

*

Answers

Oh yeah I forgot what you did you do that I mean yeah I forgot to tell you something about you lol lol I don’t want to see it anymore

To create a public key signature, you would use the ______ key.

Answers

Answer:

To create a public key signature, you would use the _private_ key.

Explanation:

To create a public key signature, a  private key is essential to enable authorization.

A private key uses one key to make data unreadable by intruders and for the data to be accessed the same key would be needed to do so.

The login details and some important credentials to access user data contains both the user's public key data and private key data. Both private key and public key are two keys that work together to accomplish security goals.

The public key uses different keys to make data readable and unreadable.

The public key is important to verify authorization to access encrypted data by making sure the access authorization came from someone who has the private key. In other words, it's a system put in place to cross-check the holder of the private key by providing the public key of the encrypted data that needed to be accessed. Though, it depends on the key used to encrypt the data as data encrypted with a public key would require a private key for the data to be readable.

Other Questions
HURRY, PLEASE HELP!!! Item 3Which words best describe Dr. Mesmer?A.humble, kind, and wiseB.simple, plain, and directC.fast, daring, and strongD.elegant, fancy, and mysterious Complete the sentence with the correct form of the verb in parentheses. Yo a las siete de la maana. (salir)a) salo b) salgo c) salga d) salge Which of these did Progressives support?A. AlcoholismB. GraftC. ProstitutionD. Direct election of senatorsapex btw Find |x| when x = 15.HELP ME PLEASEE Fill in the blink. Remember to spell correctly.TheMountains cover much of New England. Needing help with poetry please????? ANSWER THE QUESTION FAST!!!! THE ONES WHO ANSWER WILL BE MARKED BRAINLIEST!!!!!!!!Confucius has played an essential role in influencing the mindset of the people .Justify the statement.ASAP Why does PE = mgh equal PE = Fw h ? 2. This next sentence is all one sentence. See if you can improve it by splitting it into separate sentences.Like all animals, human beings need food in order to live because every part of the body needs a steady supply of food so that it can work properly, but first the food has to be broken down through a process called digestion so that it can dissolve in the blood and travel around the body HELP PLEASE I NEED IT NOW Help me please thank you. Which element does strong narrative always contain The average number of seeds in a package of cucumber seed is 95. The numbof seeds in the package can vary by eight. What are the maximum andminimum number of seeds that could be in a package?Select the correct equation and solutions that match this situation. what 3+6+9answer 4 pointss State whether the data described below are discrete or? continuous, and explain why. The volumes left parenthesis in cubic feet right parenthesis of different rooms Choose the correct answer below. A. The data are discrete because the data can take on any value in an interval. B. The data are discrete because the data can only take on specific values. C. The data are continuous because the data can take on any value in an interval. D. The data are continuous because the data can only take on specific values. Define Novice, Apprentice, Master, and Mentor. 3 5 of students at a school are boys. If there are 2610 students at the school, how many are girls? Lilliana is training for a marathon. She runs the same distance every day for a week on Monday,Wednesday, and Friday, she runs 2 laps on a running trail and then runs 6 more miles. On Tuesday andSunday, she runs 4 laps on the trail and then runs 2 more miles. On Saturday, she just runs laps. Howmany laps does Lilliana run on Saturday? A regional automobile dealership sent out fliers to prospective customers indicating that they had already won one of three different prizes: an automobile valued at $28 comma 000, a $100 gas card, or a $5 shopping card. To claim his or her prize, a prospective customer needed to present the flier at the dealership's showroom. The fine print on the back of the flier listed the probabilities of winning. The chance of winning the car was 1 out of 31 comma 248, the chance of winning the gas card was 1 out of 31 comma 248 comma and the chance of winning the shopping card was 31 comma 246 out of 31 comma 248. Complete parts (a) through (c).