what is a loop

0

What will be the values of variables p, q and i at the end of following loop? int p = 5; int q = 18; for(int i=1;i<5;i++) p++; --q;

By Beginner Yolanda Cassin at Jul 15 2021

0

Given an int variable n that has already been declared and initialized to a positive value, use a do...while loop to print a single line consisting of n asterisks. Use no variables other than n.

By Beginner Toby Breitenberg at Oct 14 2020


Related code examples


Code examples by languages