QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

Re: LCD Monitors

January 12 2012 at 4:30 PM
  (Login MCalkins)
Moderator


Response to LCD Monitors

thanks for the challenge.
regards, michael


'public domain
DIM c AS DOUBLE
DIM ra AS DOUBLE
DIM rb AS DOUBLE
DIM ang AS DOUBLE

PRINT
INPUT "c inches? ", c
INPUT "rb,ra aspect ratio? ", rb, ra

ang = ATN(ra / rb)
a = c * SIN(ang)
b = c * COS(ang)
PRINT b, a
PRINT a * b; "square inches."
END

 
 Respond to this message   
Responses