// reddito1.c
#include <stdio.h>

int main()
{
    float reddito;
    float tasse;

    printf("Inserire il reddito in euro (es: 13402.32):\n");
    scanf("%f", &reddito);
    
    if(reddito <= 7000)
      tasse = 0; //esenzione
    else
      if(reddito <= 13000)
         tasse = (reddito - 7000)*13/100;
       else
         if (reddito <= 35000)
            tasse = (13000 - 7000)*13/100 + (reddito - 13000)*23/100;
         else // reddito > 35000
            tasse = (13000 - 7000)*13/100 + (35000 - 13000)*23/100 
                     + (reddito - 35000)*33/100;
  
    printf("\nTasse da pagare: %.2f", tasse);  
    
    printf("\n\nPremi un tasto per uscire");
    fflush(stdin);

    getchar(); // trucco per far rimanere aperta la finestra di testo
    return 0;
}