@[email protected] to Programmer [email protected] • 1 year agowhy not a,b or x,y?lemm.eeimagemessage-square87fedilinkarrow-up1653arrow-down143
arrow-up1610arrow-down1imagewhy not a,b or x,y?lemm.ee@[email protected] to Programmer [email protected] • 1 year agomessage-square87fedilink
minus-square@SaratogaCxlinkEnglish3•1 year agoIt was very common in text books when showing nested loops int nWhatTheCount = 0; for (int i = 0; i < 10; i++) { for (int j = 0; j < i; j++) { for (int k = 0; k < j; k++) { for (int l = 0; l < k; l++) { // and on, and on nWhatTheCount++; } } } }
It was very common in text books when showing nested loops
int nWhatTheCount = 0; for (int i = 0; i < 10; i++) { for (int j = 0; j < i; j++) { for (int k = 0; k < j; k++) { for (int l = 0; l < k; l++) { // and on, and on nWhatTheCount++; } } } }