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 n,a ;  
    printf ("Salary:");  
    scanf("%f",&n);  
    if(n<10001)  
   {  
       a=n*1.5;  
   }  
   else if(a<10001)  
   {  
        a=n*2;  
   }  
    else if(a<30001)  
   {  
         a=n*2.5;  
   }  
    else   
   {  
         a=n*3;  
   }  
     printf ("%.2f bath",a);  
scanf("%f",&n);  
}  
                      
                
          
          
          
               
          
          
          
          
          
          
Comments: