Learn How to Program in C

by
Dr. Kristin Switala

Introduction

Directives

Variables

Conditionals

Loops

Arrays

Pointers

Strings

Functions

Structures


Site Map

Answers to Review: Loops (a)


White Box Testing

1. two errors:

  • in line 5, use != instead of !!
  • in line 6, use \n instead of /n

2. one error:

  • in line 7, put a space before %c

3. two errors:

  • line 5, is missing a space and double quote "
  • line 10, is missing a double quote "

4. two errors:

  • in line 10, put a space before %c
  • in line 10, the variable is spelled winds
Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1