Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  น้ามอุอิ
Language: C/C++
Code:
#include <stdio.h>
 main()
{
     float a,b;
     printf("slary: ");
    scanf("%.2f",&a);
     if(a<10000)
  {
    b=a*1.5;
  }
  else if(a>10001)
  {
    b=a*2;
  }
  else if(a>30001)
  {
    b=a*2.5;
  }
  else
  {
    b=a*3;
  }
   printf("Bonus: ",b);

 scanf("%.2f",&a);
}
          
          
          
          
          
          
Comments: