VenkatRJV VenkatRJV - 2 years ago 122
C++ Question

for loop with incremenation of 5

Use a counter named count that has an initial value of 1, a final value of 20, and an increment of 5.

for(int count=1; count<20; count=count+5)

Is the correct approch?

Answer Source

ya correct .. start with initial point 1 and final value of 20 , increment by 5

for(int count=1; count<=20; count=count+5)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download