Ask Question
29 November, 08:04

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.

+3
Answers (1)
  1. 29 November, 11:38
    0
    While (n) / * when n = = 0, will fail*/

    {

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

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

    }
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers