if hourworked >40 then
salary =40 * 6,5+ overtime
overtime = 10.25 (hourworked -40)
else
salary = hourworked *5
msgbox (salary ,overtime)
end if
وممكن
نعكسها تبقا
if hourworked <= 40 then
salary =5 * hourworked
else
overtime =10.25 *(hourworked -40)
salary =6.5*40 +overtime
end if
انشاء الله تكون صح
وشكرا
|