can anyone write c++ program for tower of hanoi 1d without using functions and without using recursion method and without using any extra header file

you can find a code snippet for anything you have to do

just spend a little time searching.