- 1
the code is breaching the integer max limit. the last output is wrong if you test it with 5. also, instead of integer, you shud take the input as char/string and just concatenate it everytime. you wont need any calculation.
17th Jun 2017, 7:17 AM
Gurpreet Singh
Gurpreet Singh - avatar