Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  buaaaa_555
Language: C/C++
Code:
#include <stdio.h>
 main()
{
    float n,b ;
    printf ("Salary:");
    scanf("%f2",&n);
    if(n<10000)
   {
        b=n*1.5;
   }
   else if(n>10000)
   {
        b=n*2;
   }
    else if(n>30000)
   {
         b=n*2.5;
   }
    else 
   {
         b=n*3;
   }
     printf ("%f2 bath",b);
scanf("%f2",&n);
}
          
          
Comments: