Answer:
11
Explanation:
the second in the d aray is c because to call the first value, it is d[0]. So, to call c, you put d[2]. And the 0 of the c array, or the 0 of the 2 of the d array, it is 11
put it in a program. I use JS so if you have an Apple, open script editor and change the script from AppleScript to JavaScript and put in this code:
var a = [5, 10, 15];
var b = [2, 4, 6];
var C = [11, 33, 55];
var d = [a, b, C];
d[2][0];
Answer:
expr.at(g) returns a string, not a char. They are not the same thing and that is what the compiler is complaining about.
Answer:
The correct code for this question:
g=float(input("Enter your English test grade:")) #take input from user.
#check conditions
if (g>=100 and g<=90):
print ("A")
#g greater then equal to 100 and less then equal to 90.
if (g>=89 and g<=80):
print("B")
#g greater then equal to 89 and less then equal to 80.
if (g>=79 and g<=70):
print("C")
#g greater then equal to 79 and less then equal to 70.
if (g>=69 and g<=65):
print("D")
#g greater then equal to 69 and less then equal to 69.
if(g<=64):
print("F")
#g less then equal to 64.
else:
print ("Not a grade")
#not a grade or fail.
Explanation:
In this program, we use to take a value from the user and check the value from the various conditions. To check all the condition we use if-else statement and AND operator that check to the range to together.
If -else is a conditional operator. In that, If block is used to check the true part and else part takes false value, and AND is a logical operator that check the two range together
Answer:
- Code is in JAVA language. As there is no user input the logic is straightforward.
- Below is the code along with a detailed explanation of the logic.
- The class name is Print main save as file as the main class.
Explanation:
Program:-
public class Main{
public static void main(String args[]){
/* There are two for loops...
* First for loop runs from i=1 to i=9
* Second for loop runs from j=1 to j=i.
*
*/
for(int i=1;i<=9;i++){
for(int j=1;j<=i;j++){ // j loop runs from j=1 to j=i
/*Prints I and j next to each other*/
System.out.println(i+""+j);
}//for loop of j ends here
}// for loop of I ends here
}
}
It's usually in C: drive.
<span>C:\$Recycle.Bin
</span>But if you have several drives, there are Recycle Bins each drive.