while loop c++ example program,

while loop c++ example program

Program 1:


Write a program t calculate the sum of first ten odd numbers. Also print the odd numbers.

While Loop C++

While Loop C++


The "While" Loop

It is a conditional loop statement. It is used to execute a statement or a set of statements as long as the given condition remains true.

Loop Statement in c++

Loop Statement in c++

Loops

A statement or a set of statements that is executed repeatedly is called loop. The statement(s) in a loop are executed for a specified number of times or until some given condition remains true.

The goto statement in c++

The goto statement in c++

The "goto" statement

The" goto" statement is an unconditional control transfer statement. It is used to transfer the control to a specified label in the same program without evaluating any condition.

How much money do you make from a blog?

How much money do you make from a blog?




According to a survey 1,500 bloggers said they are trying to make money by blogging,  and 9% of them make between  $1000 to $9999 a month and 4% of them make over $10000 per month but majority makes less than $ 3.5 per day.



By blogging you can't get rich immediately but you can earn a living. Success won't come quickly and easily. Don't let this yourself discourage but know it could takes months or a year to make a living with blog. Best of luck :)


Logical Operator In C++ With Example

Logical Operator In C++ With Example

Logical Operators

The logical operators are used to combine relational expressions or relational conditions. The expression containing logical operators is called logical expression or logical condition.

The Conditional Operator

The Conditional Operator

The conditional operator is used as an alternative of a simple if-else statement.
The conditional operator consists of "?" (question mark) and a ":" (colon) . Its syntax is 
Creative Commons License
Pakistan How by Tahira Aijaz is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.