Computer Science Archive: Questions from April 27, 2022
-
0 answers
-
Python
Problem 5 (5 pts) Write the output of the below block of code. def my_fun (x, y): if x < y: x = x + 1 elif x > y: X = X y else: y = -10 return x, y x, y = my_fun (1, 0) print (x, y) z, w = my_fun(x, 53 answers -
1 answer
-
Please answer the following physics problem with MATLAB(only) using vectors
Hacer en matlab el siguiente problema de fisica usando Vectores F = [- 3, 6 ) р [1, 2] m= 2019 W: [о_s) EFX = P_F= Max ебут р-у-may asis = Гах2+ац ay ²1 answer -
public static void quiz(int x) { int y = 0; while (x % 2 x = x / 2; X 0) { y++; } System.out.println(x + " " + y); } public static void main(String[] args) { quiz(22); } Output:1 answer -
1 answer