how to make the simple malware using iteration on dev c++ ??
that using simple algorithm for do, or while do or do while

Quasi-Off Topic: Back when I used to haunt Webmaster Talk Forums (yes, that acronym is deliberate on their part) we used to see these posts all the times. I have to say that, even when it was a bot or maybe a proxy account, the help requests on WTF for making malicious code were usually more fun to read than this one.
Legitimate help requests in C/C++ were so rare I gave up after a while and came here.

hi guys, wats going on. can some help me with an assignment that is" write a c++ code to design an ATM machine

Someone probably can but you need to start your own thread and explain show the code that you have and what part you are having trouble with.