Jump to content

Recommended Posts

Posted

int antonio = 20;

int pikaciu = 2;

if(antonio > pikaciu){

 

pikaciu.startDancing();

antonio.startFart();

}else 

         System.out.println("The System is too phucked up to do this , please throw it up the window and buy another one!");

"Else" is pointless if you don't change the variables.

 

I like turtles!

Posted

"Else" is pointless if you don't change the variables.

 

I like turtles!

*another programmer suddenly appears*

Not really. It basically means that if the first condition is not granted, it will show you that message on the screen. So your turtles are pointless!

Posted

*another programmer suddenly appears*

Not really. It basically means that if the first condition is not granted, it will show you that message on the screen. So your turtles are pointless!

But he doesn't change the variable,the else is useles because (antonio > pikaciu) or (20>2), the condition will always be true; there is no else unless he changes the variables before if.

Posted

But he doesn't change the variable,the else is useles because (antonio > pikaciu) or (20>2), the condition will always be true; there is no else unless he changes the variables before if.

Well, if it's that way, why don't you say that the whole decisive structure is pointless? He could've just run the line in the first "if" case after the definition of the variables.

Ok, so, maybe we're both right.

He should've made a keyboard readuing sequence like:

 

int antonio, pikachu;

scanf("%d%d",&antonio,&pikachu);//or cin<<anotnio<<pikachu; or, whatever

Posted

One of the saddest days I've ever lived. The character played by him, was borned in the year I was borned. 14 years of happiness, now are gone. Maybe I should die right now. The last photo took with Ian McKellen as Gandalf, the greatest wizard from all times! RESPECT!

 

Posted Image
 
 
Left: Peter Jackson (Producer, Director, Writer) ; Right: IAN MCKELLEN (Actor, Soundtrack, Writer)
 
And, yes, I've gave myself a reputation point. He deserves every appreciation I could give him.
Posted

int antonio = 20;int pikaciu = 2;if(antonio > pikaciu){pikaciu.startDancing();antonio.startFart();}else System.out.println("The System is too phucked up to do this , please throw it up the window and buy another one!");

LOL i laughed so hard at this :P
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site you agree to the following Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.