IF. As you might know, an if statement is the one that allows the user to control if a program enters a section of code or not based on whether a given condition is true or false. One of the… Continue Reading →
Today I am going to explain you what “if” is for in c++. Here’s a video done by myself for you: And now here’s a simple code example: #include <iostream> using namespace std; int hours; int main() { cout<<“How many hours of study do you need to approve?”; cin>>hours; if (hours>5) cout<<“You should start now”<<endl; […]
Here I will show you that I know how to use IF and ELSE stamentes.This is the basic form, I put it simple to understand the syntax quickly. Here are some works that I made using IF and ELSEs.If you want to know more check my WSQs.