How many times is the inner loop body executed in the following nested loop?
for (int x =1; x <= 10; x++)
for (int y = 1; y <= 10; y++)
for (int z = 1; z <= 10; z++)
cout << x +y+z;
arif421 0 Newbie Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.