Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   If-Then statements (https://www.askmehelpdesk.com/showthread.php?t=380319)

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

    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
  • Oct 17, 2010, 11:54 AM
    karilynngodd
    //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

  • All times are GMT -7. The time now is 12:28 AM.