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.16
JST 0.028
BTC 74526.95
ETH 2591.86
USDT 1.00
SBD 2.44