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 #askyip3 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

Coin Marketplace

STEEM 0.15
TRX 0.25
JST 0.037
BTC 97045.43
ETH 1847.68
USDT 1.00
SBD 0.85