Created
June 21, 2018 04:23
-
-
Save aligalehban/224ad05a582d38798dd85e8ab9c1d4e6 to your computer and use it in GitHub Desktop.
age calculate in c++ source code - www.alighalehban.com
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> | |
#include<conio.h> | |
using namespace std; | |
main() | |
{ | |
int year,age; | |
cout<<"please enteryour birth year:"<<"\n\n"; | |
age=2018-year; | |
cout<<"\n\n"<<"you have "<<age<<endl; | |
getch(); | |
return 0; | |
} | |
//> www.alighalehban.com.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good job!