I write this but after one try it doesn't work anymore i need help n i m only a beginner. I didn't understand what the problem is. Please help me!
And i use DevC++
What's the error you are getting?(if any).
The logic works,I have tried the same code with C++ (Visual Studio) and it works...however there are few changes I've made...check the code below :
What does it mean when you say it doesn't work?Any compile errors??Plz ellaborate,because the above code is a basic C++ one .You just need to include the header iostream.h for the code to compile, as in C you include stdio.h.
I am using Visual Studio 2005.