// =================================================================== // Program: if_then_else_v2.c // Date: July 2020 // Author: Jean-Michel Richer // Email: jean-michel.richer@univ-angers.fr // =================================================================== // Description: // This program shows how to code a if-then-else statement in C // and print the values of 'a' and 'b'. // It is intended to be translated in 32 bits x86 assembly // language. // =================================================================== #include #include // global integer variables int a = 1; int b = 2; /** * main function */ int main(int argc, char *argv[]) { if (a < b) { printf("%d < %d\n", a, b); } else { printf("%d >= %d\n", a, b); } return EXIT_SUCCESS; }