Hello World!

in introduceyourself •  7 years ago 

Here is my first post on STEEEEEEEMIIIITTTTTTTT !!! Just heard about it and decided to try it out. Looks good so far!

From the title of the post, you can take a wild guess that i am a programming geek. And this is my favorite Tshirt :

i-code-therefore.jpg

If you know the answer to this question, please do connect with me:

int i= 1;
while( !(i++ + ++i <= 1+ i)) {i--;}
System.out.println( i );

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Welcome to Steem Community @pushkarg! As a gentle reminder, please keep your master password safe. The best practise is to use your private posting key to login to Steemit when posting; and the private active key for wallet related transactions.

In the New Steemians project, we help new members of steem by education and resteeeming their articles. Get your articles resteemed too for maximum exposure. You can learn more about it here: https://steemit.com/introduceyourself/@gaman/new-steemians-project-launch

Welcome and play in steemit app. Hope you can share useful things with your writing and develop in this steemit app. Here we can mark the post with a minimum of five hastags for each person's search for the article. Enjoy in this steemit app because we also get additional income. Happy steemit @pushkarg

Welcome to Steemit! :)

What's up welcome to steemit.

Welcome to steemit @pushkarg :)

thanks :)

Welcome pushkarg, hope you will have a great time here on steemit!

thanks a lot !

Hey there

Welcome to steemit. @pushkarg
following you now. :D

Welcome to steemit. Keep posting and you will go far.

Thanks for the advice :)

Welcome to Steemit @pushkarg , checkout @steemitguide for more information and guides. btw Have a nice day mate :D

Thanks mate ! You too have a nice day ! will definitely check it out

3

At least that's the output in C#

Wow.. I got the same answer

Yes . That's right !
But don't use an editor please.. what's the fun in that :)

But I appreciate the effort.. thanks for solving and replying :)

Hi @pushkarg I tried it in Java and I got the same answer. What's the correct answer??

Yep 3 is the right answer.. congrats:) if you guys like it, I can post more coding challenges here

Yes post more coding challenges.. one problem a day 😍