Ask Question
18 July, 01:25

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.

+4
Answers (1)
  1. 18 July, 01:42
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers