ACM (UVa) : 11150


Integer Number_of_bottles_u_can_enjoy = N

continue while ( N >= 3 ) {
N = N – 2
Number_of_bottles_u_can_enjoy ++
}

if ( N is equals to 2 )
Number_of_bottles_u_can_enjoy ++

output: Number_of_bottles_u_can_enjoy

don’t be confused !
Number_of_bottles_u_can_enjoy is a variable name
I have just been introduced u, how to declare an integer variable in horrible way
or, u can say that, Shahab has made a revolutionary change of naming a variable !!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s