Question

 What is iterative statement? Explain use of for-loop and while-loop in Java programming

27 Apr 2023
Answer :
Word Count : 359

An iterative statement, also known as a loop, is a programming construct that allows a block of code to be executed repeatedly until a certain condition is met. In Java, two commonly used iterative statements are the for loop and the while loop.

  1. For Loop: The for loop is used when the number of iterations is known in advance. It consists of three parts: initialization, condition, and increment/decrement.

Syntax:

_________ _________ ______ ___ __________ _____ ___.
___ ________ _________ _______ _________ ____ _________ ____.
_________ _________ __________ ________ ________ ____ ___ ___ ________ _________ ______.
_____ ___ ____ __________ ______ _____ ____ ____ _________ ___ ____.
__________ ________ ________ ______ ______ ____ ___ _____.
____ ____ _________ ____ __________ __________ _______ ________.
_____ ____ _________ __________ ____ _____ _________ _______ ___ _____ ______.
____ __________ ____ ___ ________ ________ _______ ____ ___ ______ ___ ____.
______ _______ ___ _______ ____.
_____ _______ ________ __________ ______ _______ ______ _____ ___ _________ ________.
_____ _____ ________ _____ _______ ________ ____ ____.
________ __________ ____ ______ _________ __________ _______ ______ ______.
______ __________ _______ _________ ________ ______ __________ _______ ______.
____ ___ ___ ___ ________ _______.
_____ _____ ____ __________ _____ _____.
_______ _____ _______ ________ _______ _________.
________ _______ __________ ________ _______ _______ _________ _________.
___ _______ _________ ____ ____ _______ ________ _____ ________ _______ _____.
________ ________ __________ __________ ____ ______ __________ __________ _________ ____ _________.
_________ ___ ___ _____ ____ _____ ___ _________.
______ _________ ______ __________ _______ ________ ________ ___ _______ ______.
__________ ____ ____ _______ ______.
___ ________ ___ _______ _______ _________ ___ ______ _____ ______ ____ __________.
______ _____ _____ _______ ____ ____ ______ ____ ___ ___ _________ _____.
_________ ____ ________ ______ ___ _________ ___ __________ __________.
_________ ____ ______ ______ ___ __________ ________ _____ ____ _______ __________.
_______ _______ _________ _________ ________.
__________ ________ ____ _____ ___ ____ ___ _____ _______.
_____ ________ ____ ______ ___ ___ ___ ____.
___ ____ _________ ___ ______ _________ _______ _________ ____ __________.
______ ____ ______ ____ _________ ______ ________ __________ ___ ___ _____.
____ _______ ___ ______ __________ _____ _________ _______ ______ _______ _______ _________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance  What is iterative statement? Explain use of for-loop and while-l
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→