Header Ads

URI Online Judge | 1008 - Salary

#include <stdio.h>

int main() {

    int employeeNumber, dollar;
    double hour, salary;

    scanf("%d",&employeeNumber);
    scanf("%d",&dollar);
    scanf("%lf",&hour);

    salary =dollar*hour;

    printf("NUMBER = %d\n",employeeNumber);
    printf("SALARY = U$ %.2lf\n",salary);
    return 0;
}


No comments:

Powered by Blogger.