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.17
TRX 0.13
JST 0.027
BTC 59428.91
ETH 2657.45
USDT 1.00
SBD 2.50