C Study Guide

St. Gabriel's College

|

If statements

Write a program that asks the user:

"How old are you?\n"

If the user is 18 or older, the program should output:

"You are old enough to drive a car."

otherwise, it should output:

"You will have to walk."


Compiler:
Output: