Header Ads

Header ADS

Solution of URI 1008::Salary

Before seeing the solution make sure that you have tried enough. Don’t copy the whole code, just find out the logic. If you feel any problemyou will inform me by comment.





#include <stdio.h>
int main()
{
    int NUMBER,hour;
    float ph,SALARY;
    scanf("%d%d%f",&NUMBER,&hour,&ph);
    SALARY=hour*ph;
    printf("NUMBER = %d\n",NUMBER);
    printf("SALARY = U$ %.2f\n",SALARY);
    return 0;
}

No comments

Theme images by konradlew. Powered by Blogger.