Editorial for [Làm quen OJ]. Bài 1. Print Hello World !


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: 28tech.com.vn

Bài này bạn cần nhập 1 số từ bàn phím, gọi là x : cin >> x

Dòng 1 : In ra x vừa nhập : cout << x << endl;

Dòng 2 : In ra dòng chữ "Hello World !", chú ý viết đúng từng chữ cái và dấu cách

Dòng 3 : In ra dòng chữ "28tech C++ programming !", chú ý viết đúng từng chữ cái và dấu cách

#include <iostream>
#include <iomanip>

using namespace std;

int main(){
    int x;
    cin >> x;
    cout << x << endl;
    cout << "Hello World !" << endl;
    cout << "28tech C++ programming !" << endl;
    return 0;
}

Comments

Please read the guidelines before commenting.


There are no comments at the moment.