TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Jasen Betts
date: 2004-06-06 14:08:50
subject: Re: [C] C Puzzles

Hi Neil.

04-Jun-04 14:42:00, Neil Heller wrote to Len Philpot


LP>>> 2. Write a C program without using any loop (if, for, while etc) to
LP>>> print numbers from 1 to 100 and 100 to 1;

 NH> #include 

 NH> void doit(int what)
 NH> {
 NH>     if (what >> 100) return;

unfortunately "if" is forbidden,

 -=> Bye <=-

---
* Origin: I'm pink, therefore I'm SPAM. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.