Subject: | |
From: | |
Reply To: | |
Date: | Sat, 22 Mar 2003 08:28:53 EST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Keven writes:
> Here is a couple of C problems that came from the unixwiz list
> I have my answers that I will post later.
> Just curious for other's solutions.
>
> Keven Miller
> [log in to unmask]
>
> To: <[log in to unmask]>
> Sent: Saturday, March 22, 2003 03:49
> Subject: [UNIX-WIZ] "Hello World" program in 'C'
>
>
> > Dear All,
> >
> > Can somebody give me solution of following
> >
> > 1. Write a "Hello World" program in 'C' without using a semicolon.
> > 2. Write a 'C' program without using any loop (if, for, while etc) to
> > print numbers from 1 to 100 and 100 to 1;
Having studiously and so far successfully having completely avoided the
ugliness of C, the second question is still answerable: simply write a
program with 200 print statements in it, in this fashion:
print 1
print 2
print 3
.
.
Indeed, this would work in any language. A little tedious perhaps, but
completely within the rules.
Wirt Atmar
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|