Welcome Guest | Sign in | Register
Loops - Discussion Page For Q.10425 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Loops > Questions and Answers

Q: The statement which prints out the values 1 to 10 on separate lines, is
A.  Statement 1
for( count = 1; count <= 10; count = count + 1)
printf("%d\n", count);
B. Statement 2
for( count = 1; count < 10; count = count + 1)
printf("%d\n", count);
C.  Statement 3
for( count = 0; count <= 9; count = count + 1)
printf("%d ", count);
D. Statement 4
for( count = 1; count <> 10; count = count + 1)
printf("%d\n", count);

Answer and Explanation

Answer: Statement 1
for( count = 1; count <= 10; count = count + 1)
printf("%d\n", count);

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.