問題描述
如何在 C 字符串中的文本或字母中添加下標字符? (How to add a subscript character to text or a letter in a C string?)
#include <stdio.h>
int main() {
printf("x1\n");
return 0;
}
我想將 1 字符添加到 x 的底部,就像在 HTML 中一樣。用 C 語言可以嗎?
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
x<sub>1</sub>
</body>
</html>
參考解法
方法 1:
It's not possible here. Like you can see if needed we use sqrt function for root‑over but there is no symbol.
(by NoWeDoR、Md Asadullah)