Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. /*
  2. ============================================================================
  3. Name : Helloworld.c
  4. Author :
  5. Version :
  6. Copyright : Your copyright notice
  7. Description : Hello World in C, Ansi-style
  8. ============================================================================
  9. */
  10.  
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13.  
  14. int main(void) {
  15.  
  16. float percent;
  17. int days;
  18. float capital;
  19. int divide=360*100;
  20.  
  21. printf("Type 3 different Numbers");
  22. scanf("%f.2", & percent);
  23. scanf("%d", & days);
  24. scanf("%f", & capital);
  25.  
  26.  
  27. float interest = percent * days * capital / divide;
  28. printf("Interest:%1.2f€", interest);
  29.  
  30.  
  31.  
  32.  
  33. return EXIT_SUCCESS;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement