home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
qc
/
qc25
/
else.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1989-11-15
|
269 b
|
16 lines
/* ELSE.C: Demonstrate else clause. */
#include <stdio.h>
#include <conio.h>
main()
{
char ch;
printf( "Press the b key to hear a bell.\n" );
ch = getch();
if( ch == 'b' )
printf( "Beep!\a\n" );
else
printf( "Bye bye\n" );
}