Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  กรีน
Language: C/C++
Code:
#include <stdio.h>
int main()
{
     float a,b;
        printf("slary:");
        scanf("%2f",&a);
        if(a>10,000)
        {
             b=a*1.5;
         }
         else if(a>10,001)
         {
             b=a*2;
          }
          else if(a>30,000)
         {
             b=a*2.5;
         }
          else if(a>50,000)
         {   
             b=a*3;
         }
         printf("%2f baht",b);
scanf("%2f",&a);
         

         
}
          
          
          
          
          
          
          
          
          
Comments: