Skip to content

Commit 6e8a4da

Browse files
committed
style(ex4.cpp): remove whitespaces
1 parent 9c2791f commit 6e8a4da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

exercises/ex4.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@ int insertNumber(){
4343

4444
do {
4545
if(!isCorrect) cout << ERROR_COLOR+("[Insert a valid input] ")+NORMAL_COLOR;
46-
46+
4747
cout << "Insert Mounth: ";
4848
getline(cin, insert);
49-
49+
5050
isCorrect = checkStringIsNumber(insert);
5151
} while(!isCorrect);
5252

5353
return stoi(insert);
5454
}
5555

5656
bool checkStringIsNumber(string in){
57-
if(in.empty())
57+
if(in.empty())
5858
return false;
5959

6060
for(int i = 0; i < in.size(); i++)
61-
if((in.at(i) < ZERO || in.at(i) > NINE) && in.at(i) != MINUS)
61+
if((in.at(i) < ZERO || in.at(i) > NINE) && in.at(i) != MINUS)
6262
return false;
63-
63+
6464
if(stoi(in) > MAX_NUMBER) return false;
65-
65+
6666
return true;
6767
}

0 commit comments

Comments
 (0)