Find the number of times the statement block is executed! for (i=0; i<=n; i++) for (i=1; j<=i; j*=2) statement block; for (i=1; i<=n; i*=3) for (j=1; j<=n; j*=2) statement block;

in askyip •  3 years ago 

Question : Find the number of times the statement block is executed! for (i=0; i<=n; i++) for (i=1; j<=i; j=2) statement block; for (i=1; i<=n; i=3) for (j=1; j<=n; j*=2) statement block;

Answer: image attached
Screenshot_20211111-110450.jpg

Screenshot_20211111-110434.jpg

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!