اقتباس:
المشاركة الأصلية كتبت بواسطة الامورة بنان
dim hourworked ,salary ,overtime as decimal
hourworked =val(textbox1.text)
if hourworked >40 then
overtime = 10.25* (hourworked -40
salary =40 * 6,5+ overtime
else
salary =5 * hourworked
end if
msgbox (salary
وممكن
نعكسها تبقا
dim hourworked ,salary ,overtime as decimal
hourworked =val(textbox1.text)
if hourworked <= 40 then
salary =5 * hourworked
else
overtime =10.25 *(hourworked -40)
salary =6.5*40 +overtime
end if
msgbox (salary
انشاء الله تكون صح
وشكرا
|
شكرا جزيلا
وبارك الله لكم
تم اضافة بعض التعديلات