Answer:
Output: yes
Explanation:
First if statement is satisfied, since numA==2, so yes is printed.
The elif statement is skipped altogether, since elif statements are only evaluated, when the statement above if false, which it is not.
Answer:
u look se33y yessir
Explanation:
......................................
Answer:
rows and columns, or matrix
Explanation:
Two-dimensional 2D arrays are being indexed with the help of two subscripts. The first one is for the row and the second one if for the column. And each of the elements of the 2D array must be of the one kind like they all can be an object type or they all can be of primitive type.
Like:
int A[3][3];
The above is the 2-dimensional array in C++, and elements are of type int, which is a primitive data type.
Answer:
public class Main
{
public static void printString(String strText, int intNumber) {
for(int i=0; i<intNumber; i++){
System.out.println(strText);
}
}
public static void main(String[] args) {
printString("Brainly", 3);
}
}
Explanation:
- Define a function called <em>printString</em> that takes two parameters - a String and an int. Since the function will print out the given String, it's type will be <u>void</u>.
- Use <em>for loop</em> to iterate according to the given number and print the given string
- In the main, call the <em>printString </em>function with some parameters.