Rewrite the following piece of code without using the AND op


Rewrite the following piece of code without using the AND operator. if billAmount > 1000 AND billHours > 50 then print \"valued customer\" end if

Solution

Use 2 if to check

if billAmount > 1000 then
   if billHours > 50 then
       print \"valued customer\"
   end if
end if

 Rewrite the following piece of code without using the AND operator. if billAmount > 1000 AND billHours > 50 then print \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site