/******************************************************************************
Welcome to code of Lập trình - Điện tử
Series: C++
Author: Nghĩa Taarabt
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
int num;
cout << "Enter an integer: ";
cin >> num;
// outer if condition
if (num != 0)
{
// inner if condition
if (num > 0)
{
cout << "The number is positive." << endl;
}
else
{
cout << "The number is negative." << endl;
}
}
else
{
cout << "The number is 0 and it is neither positive nor negative." << endl;
}
cout << "This line is always printed." << endl;
return 0;
}