Accepted solution

URI 1008 solution

Open original problem
Source code

#include <stdio.h>

int main()

 {

       int thenumber,workedhoursamount;

      double theamounttheemployeereceivesperworkedhour,SALARY;

   scanf("%d %d %lf",&thenumber,&workedhoursamount,&theamounttheemployeereceivesperworkedhour);

   SALARY=theamounttheemployeereceivesperworkedhour*workedhoursamount;

   printf("NUMBER = %d
",thenumber);

   printf("SALARY = U$ %.2lf
",SALARY);

    return 0;

}
Join the discussion

Add your comment