/*
 * File: correct3.c
 * --------------
 * When things go wrong.
 * This program corrects the error in wrong3.c
 */

#include <stdio.h>
#include "genlib.h"
#include "simpio.h"

main()
{
    int n1, n2, 
    
                                           total ;

    printf("This program adds two numbers.\n");
    printf("1st number? ");
    n1 = GetInteger() ;
    printf("2nd number? ");
    n2 = GetInteger();
    total = n1 + n2;
    printf("The total is %d.\n", total);
}
