/****************************************************************************
 * conditions1.c
 *
 * Computer Science 50
 * David J. Malan
 *
 * Tells user if his or her input is positive or negative (somewhat
 * innacurately).
 *
 * Demonstrates use of if-else construct.
 ***************************************************************************/
       
#include <cs50.h>
#include <stdio.h>
 
int
main(int argc, char *argv[])
{
    // ask user for an integer
    printf("I'd like an integer please: ");
    int n = GetInt();
 
    // analyze user's input (somewhat inaccurately)
    if (n > 0)
        printf("You picked a positive number!\n");
    else
        printf("You picked a negative number!\n");
}