Question: What will the run time complexity of the given program below! 1. Declare variable width, height, and area 2. area=width*height 3. output area 4. end
What will the run time complexity of the given program below! 1. Declare variable width, height, and area 2. area=width*height 3. output area 4. end O 0(1) O O(n) O O(n2) O(Constant)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
