Ask Question
3 April, 18:01

Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a while loop to print a single line consisting of n asterisks. thus if n contains 5, five asterisks will be printed. use no variables other than n and j.

+5
Answers (1)
  1. 3 April, 21:41
    0
    While (n) / * when n = = 0, will fail*/

    {

    putchar ('*'); / * effectively print asterick*/

    n--; / * post-decrement n*/

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers