-
-
Save gabrielcesar/f4fe164459e07a40bf7bfe4744685c8a to your computer and use it in GitHub Desktop.
h) Salary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* h | |
* Salary | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int number; // employee's number | |
int worked_hours; // worked hours amount | |
float amount; // amount the employee receives per worked hour | |
scanf ( "%d", &number ); | |
scanf ( "%d", &worked_hours ); | |
scanf ( "%f", &amount ); | |
printf ( "NUMBER = %d\n", number ); | |
printf ( "SALARY = U$ %.2f\n", worked_hours * amount ); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment