Programming problems... No...

Source: Internet
Author: User
Programming problems... Will not do... -- Linux general technology-Linux programming and kernel information, the following is a detailed description. A worker is paid $26 per hour. in any week, overtime is paid for any hours more than 40. the overtime rate is one and a half times normal, when T for Sunday when it is twice normal.
You are to write a C program which will compute the worker's weekly pay given the total hours worked in that week and the number of those hours that are worked on Sunday.
There will be one line of input. It will be contain the total hours worked in the week and the number of Sunday hours worked during the week. Each will be an integer.
The output will be a single number, the pay earned in the week.
Example
Input Output

30 0 780
Limits: Both numbers will be> = 0, and the Sunday hours will not be more than the total hours.
Standard simplicity measure: 2
Who is a programming expert? it has been bothering me for a long time ..... Who can help me ~~~ Orz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.