A program I am making is running very slowly on my CSE. It is called prgmA. What am I doing wrong in the While loop?
Code:
Code:
ClrHome
Output(1,7,"| | | | |"
det(12,Black,Blue
Output(1,8," A "
det(12,Black,Magenta
Output(1,12," B "
det(12,Black,Green
Output(1,16," C "
det(12,Black,Orange
Output(1,20," D "
det(12,300
Output(2,1,"det(12, , , , )"
0->A:0->B:255->C:255->D
Output(2,8,A
Output(2,12,B
Output(2,16,C
Output(2,20,D
Output(8,1,"Foreground || Background"
Output(9,1,"--------------------------
Output(10,1," | | | | "
det(12,Black,Blue
Output(10,1," +1 "
det(12,Black,Magenta
Output(10,6," +1 "
det(12,Black,Red
Output(10,11," Quit "
det(12,Black,Green
Output(10,18," +1 "
det(12,Black,Orange
Output(10,23," +1 "
While getKey!=13
If getKey=11
A+1->A
If getKey=12
B+1->B
If getKey=14
C+1->C
If getKey=15
D+1->D
det(12,300
Output(2,8,A
Output(2,12,B
Output(2,16,C
Output(2,20,D
det(12,A,B,C,D
Output(4,1,"Your text"
End
ClrHome
Output(6,1,"Your text color"
det(12,300
Disp "A=","B=","C=","D="
Output(1,3,A
Output(2,3,B
Output(3,3,C
Output(4,3,D
Pause