We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9a391 commit 57b14b0Copy full SHA for 57b14b0
age_counter/cpp/count_the_age_person.cpp
@@ -1,9 +1,10 @@
1
using namespace std;
2
3
-#include <iostream>
+#include<iostream>
4
+#include<conio>
5
6
int main()
-{
7
+{ clrscr();
8
int BirthMonth, BirthYear;
9
int CurrentMonth, CurrentYear;
10
int AgeYear, AgeMonth;
@@ -12,13 +13,13 @@ int main()
12
13
cout<<"Enter Your Birth Year(Eg:1989):";
14
cin>>BirthYear;
15
- cout<<"\n\nEnter Your Birth Month(Eg:7):";
16
+ cout<<"\n\t\tEnter Your Birth Month(Eg:7):";
17
cin>>BirthMonth;
18
- cout<<"\nEnter The Current Month(Eg:7):";
19
+ cout<<"\n\t\tEnter The Current Month(Eg:7):";
20
cin>>CurrentMonth;
21
- cout<<"\nEnter The Current Year(Eg:2010):";
22
+ cout<<"\n\t\tEnter The Current Year(Eg:2010):";
23
cin>>CurrentYear;
24
25
AgeYear=CurrentYear-BirthYear;
0 commit comments