subject
Computers and Technology, 14.07.2019 03:10 fzzyy

What is the output of the following code segment?
n = 1;
for ( ; n < = 5; )
cout < < n < < ' ';
n++;
1. 1 2 3 4 5
2. 1 1 1 and on forever
3. 2 3 4 5 6
4. 1 2 3 4
5. 2 3 4 5

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 05:20
Write a program called assignment3 (saved in a file assignment3.java) that computes the greatest common divisor of two given integers. one of the oldest numerical algorithms was described by the greek mathematician, euclid, in 300 b.c. it is a simple but very e↵ective algorithm that computes the greatest common divisor of two given integers. for instance, given integers 24 and 18, the greatest common divisor is 6, because 6 is the largest integer that divides evenly into both 24 and 18. we will denote the greatest common divisor of x and y as gcd(x, y). the algorithm is based on the clever idea that the gcd(x, y) = gcd(x ! y, y) if x > = y and gcd(x, y) = gcd(x, y ! x) if x < y. the algorithm consists of a series of steps (loop iterations) where the “larger” integer is replaced by the di↵erence of the larger and smaller integer. this continues until the two values are equal. that is then the gcd.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
You know the right answer?
What is the output of the following code segment?
n = 1;
for ( ; n < = 5; )
...
Questions
question
Mathematics, 18.11.2020 21:50
question
Health, 18.11.2020 21:50
question
Mathematics, 18.11.2020 21:50
question
English, 18.11.2020 21:50
question
Mathematics, 18.11.2020 21:50
Questions on the website: 13722363