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

Create program that displays levels of the fractal structure, In this Proje...

In this Project your task is to create a program that displays various levels of the fractal structure of the so called square shaped Sierpinski-carpet. The display of level 4 is s

Microprocessor, what is a microprocessor? types of microprocessors? advanta...

what is a microprocessor? types of microprocessors? advantages disadvantages

E-R diagram, can you give me online education system E-R daigram..

can you give me online education system E-R daigram..

JSP, can you provide some assignments for JSP learning

can you provide some assignments for JSP learning

Write a function to draw backbone of the protein, Write a function drawCA(a...

Write a function drawCA(aname, coords) that uses the plot3 command to draw the C α backbone of the protein. When calling this function, you should pass in the aname and coords var

Calculating percentage differences-circuit diagram, In the procedure sectio...

In the procedure section, it is important to have a clear circuit diagram with component values and a brief, but accurate description of each step taken. 1. Tables for both the

Java program, Write a program to calculate amount after n number of years b...

Write a program to calculate amount after n number of years by inputting principal at the rate of 8% interest.

Java, Write a program that repeatedly prompts for and reads a positive inte...

Write a program that repeatedly prompts for and reads a positive integer value n and then calculates and displays the nth Fibonacci number

Sorting the file seqential order, write a program to sort the file sequenti...

write a program to sort the file sequential order and store on magnetic tape and print sorted tape as the output of the program.

Characteristics of object-oriented programming, Characteristics of object-o...

Characteristics of object-oriented programming: •   Emphasis is on data rather than procedure. •   Programs are divided into what are known as objects. •

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