Created
January 26, 2013 13:11
-
-
Save sprintr/4642297 to your computer and use it in GitHub Desktop.
Age into seconds calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int age = 0, ageInSeconds = 0; | |
cout << "Enter your age: " << endl; | |
cin >> age; | |
ageInSeconds = age * 365 * 24 * 60 * 60; | |
cout << "Your life in seconds is: " << age; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment