Introduction to Computer Science in C#
30 Nov 2021
  • Context
  • C# Data and Operations
  • Defining Functions of your Own
  • Basic String Operations
  • Decisions
  • While Loops
    • While-Statements
    • While-Statements with Sequences
    • Interactive while Loops
    • Short-Circuiting && and ||
    • While Examples
    • More String Methods
    • User Input: UI
    • Greatest Common Divisor
    • Do-While Loops
    • Number Guessing Game Lab
    • Chapter Review Questions
  • Foreach Loops
  • For Loops
  • Files, Paths, and Directories
  • Arrays
  • Lists
  • Dictionaries
  • Classes and Object-Oriented Programming
  • Testing
  • Interfaces
  • Recursion
  • Data Structures
  • Appendix
Introduction to Computer Science in C#
  • »
  • While Loops
  • View page source

While Loops

  • While-Statements
    • Sum To n
  • While-Statements with Sequences
    • One Character Per Line
    • Print Vowels Function
    • IsDigits Function
    • Play Computer With a Loop
  • Interactive while Loops
    • Agree Function Exercise
    • Interactive Sum Exercise
    • Safe Whole Number Input Exercise
  • Short-Circuiting && and ||
  • While Examples
    • Bisection Method
    • Savings Exercise
    • Strange Sequence Exercise
    • Roundoff Exercise II
  • More String Methods
    • Count Repetitions in a String Exercise
    • Safer PromptInt and PromptDouble Exercise
    • Safest PromptInt Exercise
  • User Input: UI
  • Greatest Common Divisor
    • Euclid’s Algorithm
    • GCD “Brute Force” Method
    • GCD Subtraction Method
    • GCD Remainder Loop
    • Preview: Recursive GCD
  • Do-While Loops
    • Loan Table Exercise
  • Number Guessing Game Lab
    • Part 1: No Hints; Fixed Secret Number
    • Part 2: Add Hints
    • Part 3: Add a Random Secret Number
    • Part 4: Let the Player Set the Range of Values
    • Part 5: Count the Guesses
    • Possible Extra Credit Improvements or Variations
  • Chapter Review Questions
Previous Next

© Copyright 2012-2021, Andrew N. Harrington and George Thiruvathukal. Last updated on 30-November-2021 00:26:56.

Built with Sphinx using a theme provided by Read the Docs.