Control Flow – If Condition Introduction
محتوى الدرس
/*
Control Flow
- If Condition Introduction
Syntax
if (Condition Is True)
{
// Do Something
}
*/
#include <iostream>
using namespace std;
int main()
{
int age = 20;
cout << "Welcome\n";
if (age < 18) // False
{
cout << "Beware\n";
}
cout << "See You\n";
return 0;
}