Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  tete
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <locale.h>
   int main ()
       {
            int ts;
            float salarioatual;
            setlocale(LC_ALL, "Portuguese");
            printf("digite o tempo de serviço:\n");
            scanf("%i", &ts);
            printf("digite o salário atual:\n");
            scanf("%f", &salarioatual);
            if  (ts<=5)
            salarioatual=salarioatual+350.00;
            else
           salarioatual=salarioatual+500.00;
            printf(" o salário atual é:%.2f\n\n",salarioatual);
            system ("pause");
            return(0);    
           
        }
          
          
          
          
          
Comments: