#include <iostream> #include <conio.h> using namespace std; string month; unsigned int c,r,s; int agefinding (unsigned int c) { int a; cout << "What is your age? > "; cin >> c; return (c); } int monthfinding (unsigned int r) { cout << "Were you born on or before today's date in your birth year? > "; cin >> month; if (month=="no","No") { r = 2008; return(r); } else { r = 2009; return(r); } } int main () { int z,y; z = agefinding (c); y = monthfinding (r); if (y-z<0) { cout << "You were born in " << abs(y-z) << " B.C."; } else if (y-z==0){ cout << "You were born in " << y-z << ". ....Jesus?"; } else { cout << "You were born in " << y-z << "."; } getch (); return 0; } |
|
|
|
|