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!
Try googling ‘upside down text generator’