Advertisement
Guest User

Untitled

a guest
May 6th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. main(){
  4. int i;
  5. float x;
  6. printf("Digite um valor: ");
  7. scanf ("%d",&i);
  8. if (i==99){
  9. printf("Saindo...\n");
  10. return 0;
  11. };
  12. x=(i*15)/100;
  13. printf("%f",x);
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement