Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] C puzzle
- Date: 27 Jul 2002 08:13:41 +0900
- From: bruno raoult <br@example.com>
- Subject: Re: [tlug] C puzzle
- References: <20020726012006.M48242-100000@example.com> <15680.11598.642676.889439@example.com>
2 more problems on the same one. Both with 1 character replacement. How to get 21 "-" chars output? How to get 1? (Ooops. Sorry for this one!) br. On Fri, 2002-07-26 at 01:54, Viktor Pavlenko wrote: > >>>>> "TM" == Tod McQuillin <devin@example.com> writes: > > TM> This C program: > > TM> main() { > TM> int i, n=20; > TM> for(i = 0 ; i < n ; i--) > TM> printf("-"); > TM> } > > TM> Can be modified into a correct program for printing 20 '-' > TM> characters in a row by replacing a single character of the > TM> code. > > TM> In fact, there are three different ways to do it. -- "Is that all?" asked Alice. "That is all." said Humpty Dumpty. "Goodbye." -- Lewis CarrolAttachment: signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
- [tlug] Re: C puzzle
- From: Tobias Diedrich
- Re: [tlug] C puzzle
- From: Masato BITO
- References:
- [tlug] C puzzle
- From: Tod McQuillin
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] .NET on linux?
- Next by Date: Re: [tlug] C puzzle
- Previous by thread: Re: [tlug] C puzzle
- Next by thread: Re: [tlug] C puzzle
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links