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 s,b;
         printf("Salary:");
      scanf("%f2",&s);
         if(s<10000)
        {
           b=s*1.5;
        }
           else if (s>10000)
        {
           b=s*2;
        }
           else if (s>30000)
       {
           b=s*2.5;
       }
           else
       {
           b=s*3;
       }
      printf("%f2 Bath",b);
scanf("%f2",&s);
 }
             
          
          
          
          
          
Comments: