C++ Application #4 – Hello, World! Newline Repeating…

// Hello World Newline Repeating Program - Prints "Hello, World!" but a newline occurs everywhere that whitespace is allowed to happen (once of course)
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>

int main()
{
	std::cout << "H" << std::endl << "e" << std::endl << "l" << std::endl << "l" << std::endl << "o" << std::endl << "," << std::endl << " " << std::endl << "W" << std::endl << "o" << std::endl << "r" << std::endl << "l" << std::endl << "d" << std::endl << "!" << std::endl;
    // std::cin.get(); // Prevents the console from closing 
	return 0;
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s