2021 | OriginalPaper | Chapter
The for and while Statements
Author : Noel Kalicharan
Published in: Julia - Bit by Bit
Publisher: Springer International Publishing
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
In this chapter, we will explain the following: How to use the while statement to perform ‘looping’ in a program How to find the gcd (also called hcf) of two numbers How to find the sum and average of an arbitrary set of numbers How to read data until there’s no more How to find the largest and smallest of an arbitrary set of numbers How to fetch (read) data from a file How to send (write) output to a file How to use the for statement to perform ‘looping’ in a program How to produce tables using for How to use break/continue in while/for statements Nested for statements