Ask Question
23 July, 18:51

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.

+4
Answers (1)
  1. 23 July, 21:23
    0
    Static void DashedLine (int n) { if (n>1) Console. WriteLine (new String ('-', n)); }
Know the Answer?
Not Sure About the Answer?
Get 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 & 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