Here is a special message for Atlanticmike and Binger in my code. It's very simple, shouldn't be hard to figure out what it says.
And happy 4th of July everyone!
public class fourthofJuly{
public static void main (String [] args){
String A = "Atlanticmike";
String B = "Binger";
int [] numbers = new int [26];
System.out.print (" " + A + " " + "can ");
theword(numbers);
System.out.print (" MY");
theword2(numbers);
System.out.print (" " + B + " " + "can ");
theword(numbers);
System.out.print (" MY");
theword2(numbers);
}
public static void theword (int [] numbers){
for (int i = 0; i < numbers.length; i++){
numbers = i + 64;
if (numbers == 73)
System.out.print ("K" + (char)numbers);
else if (numbers == 83)
System.out.print ((char)numbers + "$");
}
}
public static void theword2 (int [] numbers2){
for (int i = 0; i < numbers2.length; i++){
numbers2 = i + 64;
if (numbers2 == 65)
System.out.print (" " + (char)numbers2);
else if (numbers2 == 83)
System.out.print ((char)numbers2 + "S");
}
}
}
Happy 4th! Special code for Atlanticmike and Binger
-
- God
- Posts: 2877
- Joined: Fri Jun 18, 2021 6:04 pm
Happy 4th! Special code for Atlanticmike and Binger
Last edited by doubtingthomas on Mon Jul 04, 2022 11:02 pm, edited 2 times in total.
"I have the type of (REAL) job where I can choose how to spend my time," says Marcus.
Re: Happy 4th! Special code for Atlanticmike and Binger
I got it! It’s, “Be Sure to Drink Your Ovaltine” …
-
- God
- Posts: 2877
- Joined: Fri Jun 18, 2021 6:04 pm
Re: Happy 4th! Special code for Atlanticmike and Binger
Alright, I'll change it to PG-13
"I have the type of (REAL) job where I can choose how to spend my time," says Marcus.
Re: Happy 4th! Special code for Atlanticmike and Binger
Happy Fourth, DT! We’re about to dig into some BBQ chops, corn and tators. We’ll raise our glasses to you, and to all of the Forum folks. : )
Re: Happy 4th! Special code for Atlanticmike and Binger
10 GOTO 20
20 GOTO 10
Oops just posted the secret recipe to Sic et Non’s incredible success.
20 GOTO 10
Oops just posted the secret recipe to Sic et Non’s incredible success.
-
- God
- Posts: 2877
- Joined: Fri Jun 18, 2021 6:04 pm
Re: Happy 4th! Special code for Atlanticmike and Binger
Thanks, canpakes, hopefully, you had a great fourth of July.
"I have the type of (REAL) job where I can choose how to spend my time," says Marcus.