@
Virtual Void
1. your evil
2. not true, read below:
xD no, they have been looking for it on the internet for like few weeks and they didnt find it anywhere (And since they have no brains to calculate it with a normal calc) now since they have a big forest and they need to calculate the TM so i made it, and they bought it and their using it. xD
lol i know yeah 2 euros. But its still some money for half an hour learning. and too bad, already wasted it. xD
YAY! i made an age calculator! O.o
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
double yearywb, month, day, year, age, tmonth, tday, num1, num2, num3, num4, num5;
cout << "Welcome to your age calculator (YAC) \n" << "Maker : Kevin Laig \n\n";
cout << "What year were you born? \n";
cin >> yearywb;
cout << "What month were you born(may = 5, okt = 10)? \n";
cin >> month;
cout << "What day were you born?(1-31) \n";
cin >> day;
cout << "What year is this? \n";
cin >> year;
cout << "What month is this?(1-12) \n";
cin >> tmonth;
cout << "What day is it? (1-31)\n";
cin >> tday;
num1 = year - yearywb;
num2 = tmonth - month;
num3 = tday - day;
cout << "You are " << num1 << " years, " << num2 << " month(s) and " << num3 << "days old. \n\n";
cout << "NOTE: if the answer for months is -X then calculate 12 - X";
cout << endl;
cout << "(X = a number you got for months) and you get the real answer but if "<<endl <<"your answer is -x for days then look from calendar how many" << endl << "days in this month are (28/30/31) and do 28/30/31 - X" << endl << "(X = the number you got for days) \n\n ";
system("pause");
return 0;
}
c++ is so awesome!
how to fix this?