Which answer choice would be correct if this program is executed for - ProProfs Discuss
Advertisement

Which answer choice would be correct if this program is executed for a=200, a=110, a=0, and a=50? Consider the code fragment given below.Input a;If(a>100){a=a-100;if(a>50){a=a-50;}}else if (a<100){Print “ Invalid Input”;}

Asked by AbdulJaleel, Last updated: Feb 13, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

AbdulJaleel007

AbdulJaleel

AbdulJaleel007
AbdulJaleel

Answered Oct 21, 2018

100% statement coverage and 100% branch coverage have been achieved   
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.