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

                     
          
          
          
Comments: