Just Doubt ( ▀̿ Ĺ̯▀̿ ̿ )

What about n = 1 ? it will return garbage value …you should initialize it with 1 .(Ex :- int c = 1 )…

Please Send the link of your code
how to send Link of Code ?
paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793

yes you can intialise c with 1