Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Exercise 2.17
- //This program displays "1 2 3 4" in three different ways
- #include <iostream>
- using namespace std;
- int main(){
- cout << "1 2 3 4" << endl;
- cout << "1 " << "2 " << "3 " << "4" << endl;
- cout << "1 ";
- cout << "2 ";
- cout << "3 ";
- cout << "4" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement