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

Home > Java Programming > Loops > Questions and Answers

Q: What is the output of following program?
void main(){
int a;
a=1;
while(a<=10){
printf("%d",a);
if(a>3)
break;
a++;
}
printf("%d",a+10);
}
A. 1 2 3 4 13 B. 1 2 3 3 14
C. 1 2 3 3 13 D. 1 2 3 4 14

Answer and Explanation

Answer:1 2 3 4 14

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.