Welcome Guest | Sign in | Register
Loops - Discussion Page For Q.10436 | 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 the integer values 1 to 10 on the screen, is
12345678910
A. Statement 1
count = 1;
while( count <= 10 ) {
printf("%d", count);
count = count + 1;
}
B. Statement 2
count = 1;
while( count <= 10 ) {
printf("%d", &count);
count = count + 1;
}
C. Statement 3
count = 1;
while( count < 10 ) {
printf("%d\n", count);
count = count + 1;
}
D.  Statement 4
count = 1;
while( count <= 10 ) {
printf("%d\n", count);
count = count + 1;
}

Answer and Explanation

Answer:Statement 1
count = 1;
while( count <= 10 ) {
printf("%d", count);
count = count + 1;
}

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.