// Arup Guha
// 9/28/09
// COP 3223
// Code for Tracing Questions in Exam #1 Review

#include <stdio.h>

int main() {

    // Question #1    
    printf("Hello,\"Bob,\" how are you today?\n");
    
    // Question #2
    printf("%d\n", (3 + 15)/(14 - 100%12 + 2));
    
    // Question #3
    int a = 3, b = 5, c;
    c = 3*b + a;
    a = (c - a)%8;
    a = (a + b + c)/5;
        printf("a is %d\n", a);
    
    // Question #4
    a=3, b = 5;
    if (a > 4);
        printf("A");
    printf("B");
    if (b > 4)
        printf("C");
    printf("\n");

    // Question #5
    a=3, b=7;
    if (a = 4)
        printf("A");
    if (3*a - 5 == b)
        printf("B");
    else
        printf("C");
    printf("\n");

    // Question #6
    int i;
    for (i=4; i<200; i=i+5)
        printf("A");
    printf("\n");
  
    // Question #7
    i=0;
    while (i < 20) {
        i++;
        if (i%5 > 2) {
            continue;
        }
        printf("A");
    }
    printf("\n");

    // Question #8
    i=9;
    while (i < 20) {
        i++;
        if (i%5 > 2) {
            break;
        }
        printf("A");
    }

    system("PAUSE");
    return 0;
}
