purifier 0 Report post Posted March 27, 2005 Is it possible to print a number or a character a specified number of times without using any loops... or any conditional statements...? I tried my hand at it using recursion but even that requires a condition... tried using goto but that would be a loop and also requires a condition... I thought of a solution but it is a dumb one... don't take it too seriously... Use printf("CHARACTER"); 'n' times... Any ideas? Share this post Link to post Share on other sites
osknockout 0 Report post Posted March 27, 2005 You mean like PERL? 1 x 3 = 111 if I'm right... technically no because anything that you would do (besides create multiple copies of the command) would still tell the CPU to loop. Share this post Link to post Share on other sites
purifier 0 Report post Posted March 27, 2005 That is close... But there should be some way otherwise why would i receive such a question from my friend? I'll try to find a solution... If anyone gets even an idea please tell me... Share this post Link to post Share on other sites