- 3

Fill in the blanks to declare a method that takes one integer parameter and then displays the value divided by 2.

Void myfunc (int x) { int result = x/2; Console.WriteLine ( ); } Can anyone help me?

12th Jan 2017, 8:24 PM
HY_me
8 odpowiedzi
+ 2
public static void main(String[ ] args) { int x = 10; test( x ); } static void test(int x) { System.out.println(x); }
7th Jun 2019, 2:05 AM
Tayrone Ubaldo
Tayrone Ubaldo - avatar
+ 2
Fill in the blanks to declare a method and call it from Main with the argument 88: static void func(int x) { Console.WriteLine(x/2); } static void Main(string[] args) { func ( 88 ); } Try This
28th Apr 2021, 9:30 PM
Mathew George
Mathew George - avatar
0
result ^.^ is tha answer for this void MyFunc(int x) { int result = x /2 Console.WriteLine (result );\ }
19th Jul 2018, 1:30 PM
osamax
osamax - avatar
0
int text(x)
10th Oct 2019, 10:45 AM
Akshay Narkhede
0
Fill in the blanks to declare a method and call it from Main with the argument 88:
28th Mar 2020, 8:09 AM
Naldo Abreu
Naldo Abreu - avatar
0
Fill in the blanks to declare a method and call it from Main with the argument 88: void func(int x) { Console.WriteLine(x/2); } static void Main(string[] args) { ( ); } What is this????
28th Apr 2021, 11:19 AM
Tursunova Nasiba Alisher Qizi
Tursunova Nasiba Alisher Qizi - avatar
0
Fill in the blanks to define a method doubleNum that takes an integer as its parameter and outputs its double. Then call it in main with the argument 42. static void doubleNum (int num) { System.out.println(num * 2); } public static void main(String[] args) { doubleNum(42); }
1st Nov 2023, 6:03 PM
Ghulam Qambar Dobal
Ghulam Qambar Dobal - avatar
- 1
void MyFunc(intx) { int result = x/2; Console.WriteLine(result); }
6th Mar 2018, 1:45 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar