Ask Question
11 August, 06:54

Write the definition of a function dashedline, with one parameter, an int. if the parameter is negative or zero, the function does nothing. otherwise it prints a complete line terminated by a new line character to standard output consisting of dashes (hyphens with the parameter 's value determining the number of dashes. the function returns nothing.

+2
Answers (1)
  1. 11 August, 07:54
    0
    Static void DashedLine (int n) { if (n>1) Console. WriteLine (new String ('-', n)); }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write the definition of a function dashedline, with one parameter, an int. if the parameter is negative or zero, the function does nothing. ...” 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