Skip to content

Instantly share code, notes, and snippets.

@m4hi2
Created April 5, 2017 20:07
Show Gist options
  • Select an option

  • Save m4hi2/62c7b1cc22aee1dbf3576621f12e3f93 to your computer and use it in GitHub Desktop.

Select an option

Save m4hi2/62c7b1cc22aee1dbf3576621f12e3f93 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main()
{
char employee;
double salary, sold, total_sallary;
scanf("%s %lf %lf", &employee, &salary, &sold);
total_sallary = salary + (sold * 15) / 100;
printf("TOTAL = R$ %.2f\n", total_sallary);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment