Hi All!
Is there a way of displaying X squared as in x superscript 2 to the screen?
Thanks
Hi All!
Is there a way of displaying X squared as in x superscript 2 to the screen?
Thanks
No, sorry, that's impossible.
Quzah.
Hope is the first step on the road to disappointment.
This is what i tried. Dunno whether this is what you wanted
ssharish2005Code:#include<stdio.h> int main() { printf("X%c", 253); getchar(); return 0; } /* my output X² */
exactly what I wanted. Thank you very much!!
Keep in mind that solution is not universal. It depends on what character set is supported by your compiler and the system you are running on.