subject

A1)Write a C++ Program that gets a number from the user. If the given number is negative in your input validation loop you should ask for another number until the user input is a positive value. Then finds the factorial of the given number by while loop. Your test will be based on the given example for adding to the report.
Ex:please enter a positive number:
the user input is -5
please enter another number:
the user input is 4 the program prints, {4*3*2*1=24}
The format of the print should be absolutely the same as the one put in brackets

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Robots with telescoping arms are sometimes used to perform tasks (e.g., welding or placing screws) where access may be difficult for other robotic types. during a test run, a robot arm is programmed to extend according to the relationship r = 3 + 0.5cos(4θ) and the arm rotates according to the relationship θ=−π4t2+πt , where r is in feet, θ is in radians, and t is in seconds. use a computer program to plot the path of tip a in x and y coordinates for 0 ≤ t ≤ 4s.
Answers: 2
question
Computers and Technology, 22.06.2019 11:40
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
question
Computers and Technology, 22.06.2019 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
You know the right answer?
A1)Write a C++ Program that gets a number from the user. If the given number is negative in your inp...
Questions
question
Social Studies, 08.06.2021 15:40
Questions on the website: 13722360