While / Do While Loop

While Loop Main concept while(condition){statement;} Do While Loop Main concept do{statement;}while(condition); AS LONG AS THE CONDITION IS VALID, THE STATEMENT, INSIDE THE WHILE (OR DO WHILE) LOOP, WILL KEEP ON RUNNING, NO MATTER WHAT THE STATEMENT IS Print even...

If Else

 Expression Meaning a==b a is equal to b a!=b a is not equal to b a<=b a is less than equal to b a>=b a is greater than equal to b a<b a is less than b a>b a is greater than b a%b remainder of a÷b a/b quotient of a÷b || or && and Print wheather a...

Pythagoras’ Theorem

Pythagoras’ Theorem or Pythagorean Theorem is named after a Greek philosopher, Pythagoras, who was born around 507 BC in Samos island of old Greece. According to the diagram:∠ABC = 90° (AB is perpendicular to BC) & AC is Hypotenuse then: (AC)² = (AB)² +...

BODMAS

Step 1: Look for brackets and complete the calculations inside them, according bracket order:FIRST ( )   SECOND [ ]    THIRD { }   Step 2: Look for any kind of roots (square roots, cube roots and others), indices (square of a number, cube of a number and others),...

Introduction

Header Files conio.h: CONsole Input Output (getch, clrscr) stdio.h: STanDard Input Output (scanf, printf) math.h: Mathematical functions (pow, sqrt, sin, cos, exp) string.h: Character & string functions (char, strlen, String) THERE ARE MANY OTHER HEADER FILES IN...