Ask Question
4 September, 17:27

Assume that printStars is a function that takes one argument and returns no value. It prints a line of N stars (followed by a newline character) where N is the value of the argument received. Write a statement that invokes printStars to make a line of 35 stars.

+2
Answers (1)
  1. 4 September, 20:40
    0
    printStars (35);

    Explanation:

    public class Question {

    public static void main (String args[]) {

    printStars (35);

    }

    public static void printStars (int numberOfStars) {

    for (int i = 1; i < = numberOfStars; i++) {

    System. out. print ("*");

    }

    System. out. print ("/n");

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume that printStars is a function that takes one argument and returns no value. It prints a line of N stars (followed by a newline ...” 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