Skip to content

Commit 57b14b0

Browse files
uditkumar489t2013anurag
authored andcommitted
made the output structure more satisfying (hacktoberfest17#1034)
added clrscr()- to clear the previous output & made the output lines match each other's indentation.
1 parent 0c9a391 commit 57b14b0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

age_counter/cpp/count_the_age_person.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
using namespace std;
22

3-
#include <iostream>
3+
#include<iostream>
4+
#include<conio>
45

56
int main()
6-
{
7+
{ clrscr();
78
int BirthMonth, BirthYear;
89
int CurrentMonth, CurrentYear;
910
int AgeYear, AgeMonth;
@@ -12,13 +13,13 @@ int main()
1213
cout<<"Enter Your Birth Year(Eg:1989):";
1314
cin>>BirthYear;
1415

15-
cout<<"\n\nEnter Your Birth Month(Eg:7):";
16+
cout<<"\n\t\tEnter Your Birth Month(Eg:7):";
1617
cin>>BirthMonth;
1718

18-
cout<<"\nEnter The Current Month(Eg:7):";
19+
cout<<"\n\t\tEnter The Current Month(Eg:7):";
1920
cin>>CurrentMonth;
2021

21-
cout<<"\nEnter The Current Year(Eg:2010):";
22+
cout<<"\n\t\tEnter The Current Year(Eg:2010):";
2223
cin>>CurrentYear;
2324

2425
AgeYear=CurrentYear-BirthYear;

0 commit comments

Comments
 (0)