The answer is no.
Devoted my life to programming...
how to print in c or java?
Hi,
Usage of global variable in not recommended. One alternative would be to use variable inside a function with static duration.
You need to post an effort before getting help. Being able to scan and post an image doesn't cut it.
At least have a go at n=1.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.