在C语言中,如何输出百分号呢?
很简单,只要在格式控制符里输入2个 %% 就可以了,例如:
#include <stdio.h> int main() { int a=90; printf(“%d%%\n”,a); return 0; }
这样就会在屏幕上得到 90%