What is the output of the ff. program fragment int X=10; While (x>0) ( Count<<X<<endl; X=X-3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output of the ff. program fragment int X=10; While (x>0) ( Count<<X<<endl; X=X-3

28th Nov 2016, 4:42 AM
Sefa Augustine
Sefa Augustine - avatar
2 Answers
+ 3
first of all there are errors in your programs it's cout not count and semicolon after x=x-3 the output is 10 7 4 1
28th Nov 2016, 6:22 AM
Shravan Kumar
Shravan Kumar - avatar
0
it is an error as declaration is for X n in while x is used it's case sensitive
29th Jun 2017, 5:25 PM
Suraj Bm
Suraj Bm - avatar