Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- main() {
- float anos, ze, chico;
- printf("Digite o numero de anos");
- scanf("%f", &anos);
- ze = 1.10 + (0.03*anos);
- chico = 1.50 + (0.02*anos);
- if(ze > chico) {
- printf("%f \n Ze e maior que Chico", ze );
- } else {
- printf("%f \n Chico ainda é maior que Ze", chico );
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement