Posts

Showing posts with the label If statement

ATM software | ATM proper software in c++ | ATM operating system in C++

// Don't remove these line for legal use // Upload on Let's programming by (CEO) // For more contact // key_to_programming @ yahoo.com   #include <iostream> using namespace std; void main () {        int balance=1000; // balance in account        char test= 'y' ; // for loop 1        int newbalance;        int withdraw;        int transfer;              cout<< "\t\t....ATM....\n\n" ;        while (test== 'y' || test == 'Y' )        { // loop 1 start here              int input;                    ...

If statement | How If statement works

Write a program that input two numbers and it decide either they are equal or not. # include <iostream> using namespace std; void main() {        int a;        int b;        //get value for a        cout<< "Please enter the Value of A :" ;        cin>>a;        //get the value for b        cout<< "Please enter the value of B :" ;        cin>>b;                              if (a == b)              cout<< "These two values are equal to each other " <<endl;   ...

If statement | Condition | Check | Checking condition

I f statement is a checking condition in C++ language and many others also. By this we can impose a check point and control the flow of program during the execution of the program. The if statement is firstly check the given criteria and then execute the statement or block of statements. The if statement is very important in any language. It is called by many names as if statement, if condition, if and check. Usage:           If condition (only if not nested if) is used in that place where we have  check one condition and then execute some statements. If the condition become true or satisfy the statements or block of statements written very next after if condition, execute and if the condition become false or unsatisfying then the program ignore the statements or block of statements written very next after if condition and control transfer to other statement.          ...