bacterial cell picture

Turbo C - Do While

#include <stdio.h>
#include <conio.h>
#include <string.h>
main()
{
char menu, a, b, c, d, e, A, B, C, D, E;
int x,y;
do{
clrscr();
textcolor(LIGHTBLUE);
gotoxy(25,9); cprintf("[A] SNOOPY ");
gotoxy(25,10); cprintf("[B] MICKEY MOUSE ");
gotoxy(25,11); cprintf("[C] HELLO KITTY ");
gotoxy(25,12); cprintf("[D] TAZMANIA ");
gotoxy(25,13); cprintf("[E] EXIT ");
gotoxy(22,16); cprintf("ENTER YOUR CHOICE: ");
menu=getche();
if(menu=='a' || menu=='A'){
clrscr();
gotoxy(25,12);printf("HAPPINESSr");
printf("xAA");}
if(menu=='b' || menu=='B'){
clrscr();
gotoxy(25,12);printf("BEAUTY");}
if(menu=='c' || menu=='C'){
clrscr();
gotoxy(25,12);printf("TRUST");}
if(menu=='d' || menu=='D') {
clrscr();
gotoxy(25,12); printf("LOVE");}
if(menu=='e' || menu=='E') {
clrscr();
gotoxy(25,12); printf("BYE"); }
getch();
}
while(menu!='e' && menu!='E');

getch();
}

 

 

Site Meter

webweaving by harvey
copyright 2002-2004 bikoy83. all rights reserved.