Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ============================================================================
- Name : Helloworld.c
- Author :
- Version :
- Copyright : Your copyright notice
- Description : Hello World in C, Ansi-style
- ============================================================================
- */
- #include <stdio.h>
- #include <stdlib.h>
- int main(void) {
- float percent;
- int days;
- float capital;
- int divide=360*100;
- printf("Type 3 different Numbers");
- scanf("%f.2", & percent);
- scanf("%d", & days);
- scanf("%f", & capital);
- float interest = percent * days * capital / divide;
- printf("Interest:%1.2f€", interest);
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement