fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int income, expenses, deductions,tax;
  5. int net income;
  6. loop:
  7. system("cls");
  8. printf("\n");
  9. printf("*****************************\nHELLO WELCOME TO BABY PROJECT\n*****************************");
  10. printf("\nMENU:\n");
  11. printf("\t1) Program Calculate taxes\n");
  12. printf("\t2) Created by\n");
  13. printf("\t3) Exit Program\n");
  14. printf("Please Select :");
  15. scanf("%d",&choice);
  16. switch(choice){
  17. case 3:exit(0);}
  18. switch(choice){
  19. case 1:
  20. system("cls");
  21. printf("WELCOME TO Program Calculate taxer");
  22. printf("Enter your income:");
  23. scanf("%d"& income);
  24. printf("Enter your net expenses:");
  25. scanf("%d"& expenses);
  26. printf("Enter your deductions:");
  27. scanf("%d"& deductions);
  28. net income = income - expenses - deductions
  29. if(net income<=150000){
  30. tax = 0;
  31. }else if (net income<=300000){
  32. tax = net income*0.05;
  33. }else if (net income<=500000){
  34. tax = net income*0.1;
  35. }else if (net income<=750000){
  36. tax = net income*0.15;
  37. }else if (net income<=1000000){
  38. tax = net income*0.20;
  39. }else if (net income<=2000000){
  40. tax = net income*0.25;
  41. }else if (net income<=5000000){
  42. tax = net income*0.30
  43. }else{
  44. tax = net income*0.35;
  45. }
  46. printf("Your net income is:");
  47. printf("Your tax is:")
  48.  
  49. return
  50. }
  51.  
Success #stdin #stdout 0.03s 25448KB
stdin
Standard input is empty
stdout
#include<stdio.h>
int main()
{
    int income, expenses, deductions,tax;
    int net income;
 loop:
 system("cls");
       printf("\n");
       printf("*****************************\nHELLO WELCOME TO BABY PROJECT\n*****************************");
       printf("\nMENU:\n");
       printf("\t1) Program Calculate taxes\n");
       printf("\t2) Created by\n");
       printf("\t3) Exit Program\n");
       printf("Please Select :");
       scanf("%d",&choice);
       switch(choice){
           case 3:exit(0);}
       switch(choice){
       case 1:
       system("cls");
       printf("WELCOME TO Program Calculate taxer");
       printf("Enter your income:");
       scanf("%d"& income);
       printf("Enter your net expenses:");
       scanf("%d"& expenses);
       printf("Enter your deductions:");
       scanf("%d"& deductions);
       net income = income - expenses - deductions
       if(net income<=150000){
           tax = 0;
       }else if (net income<=300000){
           tax = net income*0.05;
       }else if (net income<=500000){
           tax = net income*0.1;
       }else if (net income<=750000){
           tax = net income*0.15;
       }else if (net income<=1000000){
           tax = net income*0.20;
       }else if (net income<=2000000){
           tax = net income*0.25;
       }else if (net income<=5000000){
           tax = net income*0.30
       }else{
           tax = net income*0.35;
       }
       printf("Your net income is:");
       printf("Your tax is:")
       
       return
       }