Advertisement
yigitusta9

HE 01.10.2015

Oct 4th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6.     int initial;
  7.  
  8.     printf("How much money are there in the account?: ");
  9.     scanf("%d", &initial);
  10.  
  11.     if (initial < 10000)
  12.         printf("That account will have %0.2f TL next year.", initial*108.0 / 100 - initial*8.0 / 100 * 12.0 / 100);
  13.     else
  14.         printf("That account will have %0.2f TL next year.", initial*109.0 / 100 - initial*9.0 / 100 * 12.0 / 100);
  15.  
  16.     printf("\n");
  17.  
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement