Christmas Card in Code

Was feeling nerdy and holiday-ish. ¬†Couldn’t hit everyone up with my love, so please follow this psuedo-code to get your personalized holiday greeting. Enjoy!

/*—–BEGIN NERDY HOLIDAY GREETING——*/

int friend = size.friendList();

while (friend > 0){

System.out.println(“Dear, ” + getName.friendList(friend));

if (getReligion.friendList(friend) == ‘Christian’){

System.out.println(“Wishing you a Merry Christmas!”);

}

else{

System.out.println(“Wishing you a Happy Holiday!”);

}

friend–;

}

System.out.println(“Have a wonderful 2013! Love, Me”);

 

/*—–END NERDY HOLIDAY GREETING——*/

hoomanradfar Written by:

  • Justin

    Merry Christmas bro!

  • Annamaria

    Happy holidays to you too!

  • Anonymous

    Thanks

  • http://upfromthesky.com bbqchickenrobot

    This code is inefficient.