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 (b)


White Box Testing

1. two errors:

  • in line 5, use ++loop
  • line 6 should end with a semicolon ;

2. two errors:

  • in line 5, use < instead of >
  • in line 6, use \n

3. two errors:

  • in line 1, use stdio.h
  • in line 6, use a parenthesis like this: for( count

4. two errors:

  • line 4 should end with a semicolon ;
  • in line 6, use ++i instead of j
Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1