sigh I had to create an account to point out that this is just plain old C, not C++. Surprised that nobody else had done so already.
Also, this would actually be more verbose in java. Javascript is another story, though, as that is a very different language that happens to share part of the name.
If you want to do this more succinctly, try a language like Python:
for i in range(500): print “I will not throw paper airplanes in class.”
There are easily findable online compilers where you can test this code quickly and easily!
I have a better one! Python:jason=500Jason = (open(“flattery.txt”,“r”))Trouble = 500while jason==Trouble: print(“I will not s/ in class”) jason-=1 if jason==0: jason+=500 print(Jason)
Hah…this is the bugfix version of the the comic strip. The original, as published in newspapers nationwide, left out the \n in the printf() format string!
for i = 1,500 do ↵ print(“I will not throw paper airplanes in class.\n”) ↵ end
OR
while not getfenv().count or getfenv()< 500 do ↵ print(“I will not throw paper airplanes in class.\n”) ↵ getfenv().count = getfenv().count and getfenv().count + 1 or 1 ↵ end table.clear(getfenv())
mangamaster03 over 14 years ago
blackboard programing
JasonFoxIsMyHero about 14 years ago
And now back to our regularly scheduled program!!
nate1994a about 14 years ago
c++ cool
foxtrotfan1234 about 14 years ago
Why didn’t they show the whole thing? it could be useful if i get in trouble
kamb8 over 11 years ago
That’s C++? I thought it was java. No wonder it looks weird. And I was about to say “Jason, you don’t need half that stuff!”.
somnivore over 11 years ago
sigh I had to create an account to point out that this is just plain old C, not C++. Surprised that nobody else had done so already.
Also, this would actually be more verbose in java. Javascript is another story, though, as that is a very different language that happens to share part of the name.
If you want to do this more succinctly, try a language like Python:
for i in range(500): print “I will not throw paper airplanes in class.”
There are easily findable online compilers where you can test this code quickly and easily!
LieutenantCommanderData over 10 years ago
I have a better one! Python:jason=500Jason = (open(“flattery.txt”,“r”))Trouble = 500while jason==Trouble: print(“I will not s/ in class”) jason-=1 if jason==0: jason+=500 print(Jason)
General_Jello almost 9 years ago
Or you could do it in Ruby:a == 500until a == 500puts “I will not throw paper airplanes in class.”a = a-1end
husoski42 about 7 years ago
Hah…this is the bugfix version of the the comic strip. The original, as published in newspapers nationwide, left out the \n in the printf() format string!
Thanos about 6 years ago
That actually would work!!
Biscuithenry almost 6 years ago
I like to see worms lolololololololol
A Terrarian almost 4 years ago
Is that c#?
Aeventy over 3 years ago
(in lua)
for i = 1,500 do ↵ print(“I will not throw paper airplanes in class.\n”) ↵ end
OR
while not getfenv().count or getfenv()< 500 do ↵ print(“I will not throw paper airplanes in class.\n”) ↵ getfenv().count = getfenv().count and getfenv().count + 1 or 1 ↵ end table.clear(getfenv())
V-Cube 2 about 3 years ago
for x in range(500): print(“I will not throw paper airplanes in class.”)
R-66Y about 1 month ago
Rust:fn main(){ for n in 0..500{ println!(“I will not throw paper airplanes in class”) }}