Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main(){
- float a, b, c;
- printf("Valor: ");
- scanf("%f", &a);
- printf("Juros: ");
- scanf("%f", &b);
- for(c = 1; c <= 12; c++){
- a += a * (b / 100);
- printf("\n%d = %f", c, a);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement