Learn How to Program in C

by
Dr. Kristin Switala

Introduction

Directives

Variables

Conditionals

Loops

Arrays

Pointers

Strings

Functions

Structures


Site Map

Projects: Strings (a)

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


Project 1

Ask the viewer if they've ever visited Nepal. If the viewer answers "yes", then print "You've been in the Himalayas." If the viewer answers "no", then print "The mountains there are spectacular. You should go."

Use a string to handle the viewer's input.

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

1