Saras015
Banned
I am using inbyte() func. for input in my project.But i am facing a problem that with foresaid function i can only able to take numbers from 0~9.Is there anyway to take inputs >9?
Using Kintex 705 and Tera Terminal. I need to enter number above 9 in the terminal.
Any suggestion. please welcome.
Using Kintex 705 and Tera Terminal. I need to enter number above 9 in the terminal.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 int Factorial() { int i; u32 fact=1; u32 N, j; while (1) { print("Enter the number \n\r"); N = inbyte(); j = N - 0x30; for (i=1; i<=j; i++) { fact = fact*i; xil_printf("[sw] Factorial = %d\r\n", fact); } return fact; } }
Any suggestion. please welcome.