Skip to content

Commit d170159

Browse files
committed
Merge branch 'JQT-patch-1'
2 parents fd90314 + 14c87ab commit d170159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reverseInteger/reverseInteger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
int reverse(int x) {
3232
int y=0;
3333
int n;
34-
while( x>0 ){
34+
while( x != <0){
3535
n = x%10;
3636
y = y*10 + n;
3737
x /= 10;

0 commit comments

Comments
 (0)