[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: /*MerryChristmas.c*/



On Wed, Dec 24, 2008 at 3:11 PM, Rodrigo Padula de Oliveira
<rodrigopadula projetofedora org> wrote:
> /*MerryChristmas.c*/
> void main (int argc, char* argv[])
> {
>    printf("\n Merry Christmas! \n");
>    if (strcmp(argv[1],"girl") == 0)    /*general idea*/
>        printf("Kisses! \n");
>    else
>        printf("Hugs! \n");
> }


#i!/bin/env python
import sys
print 'Kisses!' if len(sys.argv) == 2 and sys.argv[1].lower() ==
'girl' else 'Hugs!'

-- 
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]