subject

Write a program that asks the user to enter two integer numbers X and Y. The program halves each number between X and Y then prints the values on the screen. For example: If X=5 and Y=7, the program prints the following values 5/2=2.5, 6/2=3.0 and 7/2=3.5 Sample run 1: Enter X and Y: 5 7 2.5 3 3.5 Sample run 2: Enter X and Y: 15 10 5.0 5.5 6.0 6.5 7.0 7.5

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
question
Computers and Technology, 25.06.2019 23:00
Which tab is typically used to delete an entire record? a. external data b. database tools c. home d. create
Answers: 2
question
Computers and Technology, 26.06.2019 07:00
To draw effectively and accurately in autocad, you must use the object snaps (osnap) drafting setting. true or false?
Answers: 1
You know the right answer?
Write a program that asks the user to enter two integer numbers X and Y. The program halves each num...
Questions
question
Mathematics, 07.12.2019 02:31
question
Mathematics, 07.12.2019 02:31
question
Geography, 07.12.2019 02:31
question
Biology, 07.12.2019 02:31
Questions on the website: 13722367