Skip to main content

Posts

Showing posts with the label Decision Making and Looping

Decision Making and Looping

 Introduction     A computer program is well suited for perform certain operation. Every computer language or computer programe have featuer that instruct the program for repetitive task. The process of repeatedly execution of blocks of statement is known as Looping . The statement of block will execute any number of times, from zero to infinite number.   Fig.  Loop Control structure      Java supports such a looping feature. In looping, a sequence of program will executed until some condition for the termination of the loop are satisfied. So looping have two segments, Aprogram loop means its body and control statement means its condition.     The test condition should be carefully stated in order to perform the desired number of loop executions. Java language provides three constructs for looping operation.     while      do     for 1. While:         The simplest of all lo...