SHARE
TWEET

Untitled

a guest Nov 12th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     float x,b,c;
  5.     scanf("%f",&x);
  6.     int a;
  7.     if(x>=0&&x<=400)
  8.     {
  9.        a=15;
  10.        b=((x*a)/100);
  11.        c=(x+b);
  12.     }
  13.   else  if(x>400&&x<=800)
  14.     {
  15.        a=12;
  16.        b=((x*a)/100);
  17.        c=(x+b);
  18.     }
  19.   else if(x>800&&x<=1200)
  20.     {
  21.        a=10;
  22.        b=((x*a)/100);
  23.        c=(x+b);
  24.     }
  25.    else if(x>1200&&x<=2000)
  26.     {
  27.        a=7;
  28.        b=((x*a)/100);
  29.        c=(x+b);
  30.     }
  31.     else if(x>2000)
  32.     {
  33.        a=4;
  34.        b=((x*a)/100);
  35.        c=(x+b);
  36.     }
  37.       printf("Novo salario: %.2f\n",c);
  38.       printf("Reajuste ganho: %.2f\n",b);
  39.       printf("Em percentual: %d %\n",a);
  40.  
  41.     return 0;
  42. }
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