0

am looking on how to print digits for 0 to 20 and more with puchar

i tried using putchar('0' + 48) is just printing from 0 to 9, finding it hard to do that is there any help please, i have also tried constructing the questions but it seems heard to do, can someone help

ben_code
  • 1
  • 1
  • `i tried using putchar('0' + 48) is just printing from 0 to 9` Well thats because 0 to 9 are _the only digits_. If you want to print, for example, `10`, you need to print __two__ digits, `1` and `0`. – tkausl May 27 '23 at 16:31
  • and please how can i print two digit 1 and 0 – ben_code May 27 '23 at 16:43
  • The same way you print one digit, just twice. – tkausl May 27 '23 at 16:43

0 Answers0