i also trace the program all is working fine, when i input number e.g 5 they show me as like this output 'Do you want to Continue:sum=5'
but i want give the choice for continue y or n. when i WANT TO enter y it WANT TO go to up again but the 'ans=getchar()' not working so the 'while(ans==y)' is not working
IN BIG TROUBLE WHATS WRONG HERE BRO.....

Additionally, VOID MAIN IS WRONG! Read How to define main - FAQ Conio.h and getch() are both nonstandard and should be avoided. I am willing to bet you are using turboC too, get a new compiler. (Click on the Pelles C link in Tater's sig)