Explain the while statement - computer programming, Programming Languages

Assignment Help:

Explain the While Statement - Computer Programming?

A 'while statement' is an entry controlled loop statement. When the expression is calculated and the condition is not satisfied, it won't allow executing the statements inside the loop and if condition is true, then statements get executed. It checks the condition continually until the condition goes false and once false condition occurs the control is transferred to out side of the loop.

The universal form of while statements is

            while(expression)

            {

                        statements;

            }

instance:

            while(x<5)

            {

                        x=x+5;

            }


Related Discussions:- Explain the while statement - computer programming

Display & list directory contents, Normal 0 false false fal...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Extensive programming platform .net, Extensive programming platform .NET ...

Extensive programming platform .NET It is a new, simple, and comprehensive selection foundation. It is not a selection terminology, but it can handle several selection dialects.

Design and construct a basic math program, For this assignment you will nee...

For this assignment you will need to design and construct a basic math program which targets elementary school children. Your program must adhere to the following steps and require

Information hiding, Why is this correct/when is this the right ide

Why is this correct/when is this the right idea

C, Is it possible to get an assignment done within 2 hours

Is it possible to get an assignment done within 2 hours

Frotran 2000, Please explain about sub programming.

Please explain about sub programming.

1 real and 2 complex eigenvalues, 1 Real and 2 Complex Eigenvalues    ...

1 Real and 2 Complex Eigenvalues    From the real eigenvalue/vector pair, l 1 and ?h 1 e l1 t ?h 1 We find the other two solutions in identical manner which we did

Pseudocode for a program that reads a temperature, Write a pseudocode for a...

Write a pseudocode for a program that reads a temperature as a whole number from a user and outputs a “probable” season (winter, sprint, summer, or fall) depending on the temperatu

Count the total number of records in data table, Normal 0 false...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Explain inheritance and polymorphism in lingo programming, Question: (a...

Question: (a) Explain the concepts of Inheritance and Polymorphism in Lingo programming. (b) Write short descriptions on parent scripts and child objects in Lingo object

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd