



Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!




a. switch statements require each case to end with break b. in a switch statement, when no case is true, the otherwise block (if defined) is executed c. switch statements are always more convenient than if statements d. switch statements can replace for statements
condition true false statements
The GCD of 845 and 195 is 65 The GCD of 39 and 26 is 13 The GCD of 36 and 91 is 1 The GCD of 23 and 11 is 1
Figure 1 Two examples of matrices: the right one is compliant with the condition; the left one is not. Table 1. Source Code: first section not asked. Complete the section two clear; clc; nR = random([2,10],1,1); nC = random([2,10],1,1); matrix = zeros(nR, nC) %% FIRST section % Get the elements of the matrix % This section is not requested (do not write any instruction) ... %% SECTION TWO – COMPLETE THIS SECTION % CHECK IF the sum of the elements of each row and each column % is just the same value or not. ??
Programming Bachelor in Aerospace Engineering First mid-term exam. Oct 23rd^2017 Figure 3 Exercise 0 2 - resolution