PDA

View Full Version : If-Then statements


andyhaus1057
Jul 27, 2009, 07:06 AM
How would I write an If-Then statement that sets the variable hours to 10 when the flag variable minimum is set?

Bhaskar P U
Jul 27, 2009, 07:17 AM
1 Declaretwo variables To hold flag and hour
2 Declare Integer flag
3 Declare Integer Hour
4 prompt user to set the flag
5 Display "Set The Flag Amount"
6 input flag
7 If IsMinimum(Flag) Then
8 Hour=10
9 End If

karilynngodd
Oct 17, 2010, 11:54 AM
//Declare variables
Declare Boolean minimum
Declare real hours

If Set minimum = true Then
hours = 10


That is what I got but if its not right please someone let me know... it seems too easy to be right