Question:
How do I say happy birthday using a programming language?
2014-04-05 03:26:29 UTC
I'm making a birthday cake for a programmer and simply want a message saying 'Happy Birthday Joe' written on it. I don't know anything about programming so any language will do! The code needs to be short enough to fit on a cake. Please state the language. Thank you in advance :)
Four answers:
Sadsongs
2014-04-05 05:00:37 UTC
If you go to Google Images and search for "tech font", you should find something fairly easy to replicate on a cake.



If you want a message, either the first reply or something like:



forever do

{

wish("Many happy returns");

}
?
2014-04-05 09:09:38 UTC
in java



class Bday

{

public static void main(String args[])

{

System.out.println("Happy B'day Joe !");

}

}



Save this on notepad. as A.java

then open command prompt

set the java path. (set path="C:\...\...\ bin")

click enter

set folder path of notepad saved --> cd ....

now run the following 2 commands

javac A.java

java A



it will display the message.
?
2014-04-05 04:11:02 UTC
Basic



Dim text As String

text = "happy birthday joe"

Print text



HTML





happy birthday joe



this is democracy
2014-04-05 03:30:41 UTC
void main()

{

cout<<"happy birthday joe";

getch();

}


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...