/*轉義序列的使用*/
# 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: $2000000di
Gee! $2000000.00 a month is $.2f a year.
Press any key to continue
*/ //持續更新ingco