我想问一下有没有什么办法可以让光标在按回车后保持在当前行!!
例如 ...
#include<stdio.h>
int main()
{
int d=0;
printf("Enter a number : ");
scanf("%d",&d);
if(d%2)printf(" is a Odd number\n");
else printf(" is a Even number\n");
return 0;
}
输出示例:
Enter a number : 10
is a Even number
...但我需要的是这样的:
Enter a number : 10 is a Even number
我想在用户输入的数字旁边加上“是偶数”(或“是奇数”)