I would like to print superscript and subscript with printf, like x¹? The common way to print "superscripts" is to use the x^2, x^3 syntax This is commonly understood An alternative is provided by klutt's answer If you switch to unicode by using wprintf instead of printf you could use all superscript characters from 0 to 9
Why does the unicode Superscripts and Subscripts block not contain . . . In Unicode 6 0 there is now at last an alphabetically-ordered subset of the subscript letters h-t in U+2095 through U+209C, but this was obviously rather squeezed into the remaining space in the block and encompasses less than 1 3 of all letters
python - How do you print superscript? - Stack Overflow There is a very easy way to print superscripts and subscripts using Unicode characters Do the following: Press Alt + F2 Type "charmap" On doing so, you'll get tons of characters including subscripts, superscripts, etc On the bottom left end of the window, you'd see something like 'U-xxxx' where x can be any alpha-numeric character (e g 1,2,A