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