1
0

escape.c 440 B

123456789101112131415
  1. /* escape.c -- uses escape characters */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. float salary;
  6. printf("\aEnter your desired monthly salary:");/* 1 */
  7. printf(" $_______\b\b\b\b\b\b\b"); /* 2 */
  8. scanf("%f", &salary);
  9. printf("\n\t$%.2f a month is $%.2f a year.", salary,
  10. salary * 12.0); /* 3 */
  11. printf("\rGee!\n"); /* 4 */
  12. return 0;
  13. }