#include <stdio.h> void main() { int x, y; printf("input your age: "); scanf("%i",&x); printf("input your brother's age: "); scanf("%i",&y); if (x<y) { printf("your age is %i, your brother's age is %i\n",x,y); printf("Your brother is older than you!\n"); } else if (x>y) { printf("You are older than your brother!\n"); } else { printf("Both guys have the same age!\n"); } printf("goodbye!\n"); system("pause"); }