转义序列的使用

/*转义序列的使用*/
# include <stdio.h>
spa

int main(void)
{
  float salary;
io

  printf("\aEnter your desired mothly salary: ");//蜂鸣器提示一下就请在当前行输入金额
  printf(" $_______\b\b\b\b\b\b\b");//没有换行符
  scanf("%f", &salary);
  printf("\n\t$%.2f a month is $.2f a year.",salary, salary * 12.0f); //‘\t’在在当前行第9列制表
  printf("\rGee!\n"); //‘\r’使光标移会开头‘\n’使光标移到下一行首
float

  return 0;
}
//shuchujieguo
/*
Enter your desired mothly salary:  $2000000
di

Gee!    $2000000.00 a month is $.2f a year.
Press any key to continue
*/ //持续更新ing
co

相关文章
相关标签/搜索