I'm stuck | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

I'm stuck

Fill in the blanks to declare a method that takes one integer parameter and then displays the value divided by 2. void MyFunc( x) { int result = x 2; Console.WriteLine( ); }

16th Sep 2020, 5:03 PM
Reid Stewart
1 Answer
- 1
I don't write cs. Does this work? void MyFunc(number) { Console.WriteLine(number / 2); }
17th Sep 2020, 10:35 AM
Martín Stanicio