SHARE
TWEET

uri 1048

TRJUNED Feb 21st, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     double X,Y;
  6.     scanf("%lf",&X);
  7.     if(X >= 0 && X <= 400.00 ){
  8.             Y = (X*15)/100;
  9.         printf("Novo salario: %.2lf\n",X+Y);
  10.         printf("Reajuste ganho: %.2lf\n",Y);
  11.         printf("Em percentual: 15 %\n");
  12.     }
  13.     else if(X >= 400.01 && X <= 800.00 ){
  14.         Y = (X*12)/100;
  15.         printf("Novo salario: %.2lf\n",X+Y);
  16.         printf("Reajuste ganho: %.2lf\n",Y);
  17.         printf("Em percentual: 12 %\n");
  18.     }
  19.     else if(X >= 800.01 && X <= 1200.00 ){
  20.         Y = (X*10)/100;
  21.         printf("Novo salario: %.2lf\n",X+Y);
  22.         printf("Reajuste ganho: %.2lf\n",Y);
  23.         printf("Em percentual: 10 %\n");
  24.     }
  25.     else if(X >= 1200.01 && X <= 2000.00 ){
  26.         Y = (X*7)/100;
  27.         printf("Novo salario: %.2lf\n",X+Y);
  28.         printf("Reajuste ganho: %.2lf\n",Y);
  29.         printf("Em percentual: 7 %\n");
  30.     }
  31.     else if(X > 2000.00  ){
  32.         Y = (X*4)/100;
  33.         printf("Novo salario: %.2lf\n",X+Y);
  34.         printf("Reajuste ganho: %.2lf\n",Y);
  35.         printf("Em percentual: 4 %\n");
  36.     }
  37.     return 0;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top