Learn How to Program in C

by
Dr. Kristin Switala

Introduction

Directives

Variables

Conditionals

Loops

Arrays

Pointers

Strings

Functions

Structures


Site Map

Projects: Loops (a)

Instructions: Create a C program that runs successfully for each project below.


Project 1

Create a looping program that asks the viewer "How many major rings does Saturn have?" (The correct answer is 7.)


Project 2

Create a looping program that asks the viewer "How many rings does Neptune have?" (The correct answer is 4.)


Project 3

Create a looping program that asks the viewer "Which planet has a moon called Titan?" (The correct answer is Saturn.)

Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1