Thursday, July 9, 2009

In c programming language how do you write a while loop code that does not accept any letters, only numbers?

Calculator Program in C language.

In c programming language how do you write a while loop code that does not accept any letters, only numbers?
You will need to check your input characters as they are read.





Do something like this:


char inchar = '0';


while(inchar %26gt;= '0' %26amp;%26amp; inchar %26lt;= '9')


inchar = getche();

garden flowers

No comments:

Post a Comment