how many stars?

Level pending

c++ code

for(int i=0;i<10;++i) { if(i<5) cout<<" "; if(i>10) cout<<" "; else cout<<"*"; }


The answer is 10.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ignore the first clause, it just goes to else clause from 0-9 inclusive.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...