I want users to enter 2 digits using c=ReceiveByte() command. For example, I want the user to do the following :
Enter 5
Enter 3
Output number 53 in ascii value on screen ( using hyperterminal )
Store number in a single array
Use that number for other loops etc.
My draft code is :
.
.
int c1[3];
c1[0]=ReceiveByte();
c1[1]=ReceiveByte();
.
.
for(i=0;i<3;i++)
TransmitByte(c1[i]);
.
.
Is this right ? or am I storing the 2 digits incorrectly ?
Thanks alot for your help !