It is possible to solve this problem using loop or a recursion method but what if both are not allowed?
A simple solution is to write the number 100 times in cout statement. A better solution is to use #define directive (Macro expansion)
Output: 100 times 1.
This article is contributed by Aditya Rakhecha. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.