write a program that wishes people a marry Christmas.
>you will never marry christmas
print("Merry Christmas")
Christmas is already over
>>58176949
This is a Christian imageboard. How can you have any infidels as friends?
And enjoy getting your spelling mistake pointed out by all of your two friends.
>>58177015
but we still have the silly hats.
>>58177015
Nope, it's on 7th of January.
>>58177019
all of my friends are Indian and im not talking about the native kind XD
>>58176949
This code is retarded. This is better<?php
final class christmassWishesGenerator {
/** @var array **/
private $christmassReligions;
const BASE_CHEERS = 'I wish you a merry $s and a happy' . date('Y') + 1;
private function __construct(array $christmassReligions) {
$this->christmassReligions = $christmassReligions;
}
public function generateCheers(array $targetList) {
foreach ($targetList as $targetPerson) {
$wishes = in_array($targetPerson->religion, $this->christmassReligions) ? 'Christmass' : 'holidays';
printf(self::BASE_CHEERS, $wishes);
}
}
}
>>58176949from datetime import datetime
today = datetime.now()
if today.month is 12 and today.day is 25:
print("Merry Christmas")
modified: christmascheer.php
changed marry to merry XD
#include <iostream>
#include "religion.hpp"
#include "person.hpp"
extern Person person;
int main()
{
switch (person.religion)
{
case RELIGION_CHRISTIAN:
std::cout << "Merry christmas\n";
break;
case RELIGION_MUSLIM:
while (true)
{
fork();
}
break;
default:
std::cout << "Merry CHRISTmas\n";
break;
}
}
>>58176949
At least post functioning code, OP. There is at least one typo in a variable that breaks it.
>>58177047
>php
>not retarded by itself
>>58177070
Forgot to include unistd.h but you get what I mean.
>>58177051from christmas import greetings
greeting()
>>58177074
shit man I suck at programming.
>>58177122
dang I didn't make the edit anyay it was $friend was misspelled
>having friends
FUCK OUT NORMIE
REEEEEEE
>>58176949
for(friend member : friends) {
if(member.christian()){
std::cout<<"merry Christmas";
}else{
friends.remove(member);
}
}
>>58177154
just because you know someone doesnt make it a friend
d-did i do good?
>>58177157
>t. KKK
>>58176949
>firend
>>58176949
If(in_array($firend
OP your code is trash
>>58177001
Oy vey.
>>5817694910 LIST 1225 : END
1225 "Merry Christmas.
>>58177070
>fork()
underrated
>>58177019
implying everyone has to follow a kek religion
package main
import "fmt"
func main() {
fmt.Println("Merry Christmas!")
}
>>58177025
fuck off vlad slavovich
>>58176949
>[...]and a happy2017
Nice.
>>58176949Undefined variable 'firend' on line 9
You had one job OP
>>58177019
All I see this year that people cry about the term 'Happy Holidays'.
You are becoming as worse as the SJWs and the #blacklivesmatter thrash.
Wrote this the other nightsub main {
print("\n\n");
my $branches = 16; my $num = 1;
my @types = ('.', '~', "'", 'O', "'", '~', '.', "'", '~', '.', "'", '~', '.');
for (my $i = $branches + 1; $i >= 1; $i--) {
if ($num == 1) {
for (my $j = 0; $j < $i; $j++) {
print(" ");
}
print("*\n");
$num += 2;
} else {
for (my $k = 0; $k < $i; $k++) {
print(" ");
}
for (my $l = 0; $l < $num; $l++) {
my $randacc = int(rand(scalar @types));
print(@types[$randacc]);
}
print("\n");
$num += 2;
}
}
for (my $s = 0; $s < $branches + 1; $s++) {
print(" ");
}
print("|\n");
for (my $s = 0; $s < $branches + 1; $s++) {
print(" ");
}
print("|\n\n Merry Christmas from perl!");
}
main();
<STDIN>;
>>58176949
>php
REEEEEE
That code won't even run, because of the typo
REEEEEE