Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Nested if Statements
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Brandon9009




PostPosted: Mon Nov 05, 2012 10:00 am   Post subject: Nested if Statements

Hey guys I really need help finding the smallest of three numbers.
It says to enter three distinct numbers and use a nested if statement to determine which is the smallest of the three numbers. and display the smallest of the three numbers entered. Rolling Eyes
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Mon Nov 05, 2012 10:48 am   Post subject: RE:Nested if Statements

Compare the first two numbers. If the first is greater, compare it to the third. If the second was greater, compare *it* to the third.

You can directly translate the above statement into code.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: