Skip to main content
Top

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.

search-config
loading …

Abstract

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

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Business + Economics & Engineering + Technology"

Online-Abonnement

Springer Professional "Business + Economics & Engineering + Technology" gives you access to:

  • more than 102.000 books
  • more than 537 journals

from the following subject areas:

  • Automotive
  • Construction + Real Estate
  • Business IT + Informatics
  • Electrical Engineering + Electronics
  • Energy + Sustainability
  • Finance + Banking
  • Management + Leadership
  • Marketing + Sales
  • Mechanical Engineering + Materials
  • Insurance + Risk


Secure your knowledge advantage now!

Springer Professional "Engineering + Technology"

Online-Abonnement

Springer Professional "Engineering + Technology" gives you access to:

  • more than 67.000 books
  • more than 390 journals

from the following specialised fileds:

  • Automotive
  • Business IT + Informatics
  • Construction + Real Estate
  • Electrical Engineering + Electronics
  • Energy + Sustainability
  • Mechanical Engineering + Materials





 

Secure your knowledge advantage now!

Springer Professional "Business + Economics"

Online-Abonnement

Springer Professional "Business + Economics" gives you access to:

  • more than 67.000 books
  • more than 340 journals

from the following specialised fileds:

  • Construction + Real Estate
  • Business IT + Informatics
  • Finance + Banking
  • Management + Leadership
  • Marketing + Sales
  • Insurance + Risk



Secure your knowledge advantage now!

Metadata
Title
The for and while Statements
Author
Noel Kalicharan
Copyright Year
2021
DOI
https://doi.org/10.1007/978-3-030-73936-2_4

Premium Partner