In C language how to write super/sub script in printf();
How to write Superscript letter in C?
You need to know the ASCII number for the character you want to print. The ASCII number is different for each character you can print so I cannot answer your question exactly, but I included a reference to a page which loops through and prints out some characters (including a few superscript characters). Hopefully it helps you.
Reply:#include %26lt;iostream%26gt;
using namespace std;
main() {
printf(" Code For Superscript :\n");
printf("%c \n",251);
printf("%c \n",253);
printf("%c \n",252);
system("pause");
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment