A many periphels can be used
Answer:
C++.
Explanation:
#include <iostream.h>
void main(int argc,char* arg[]) {
// Arrays
int x[100];
int y[50];
int z[50];
////////////////////////////////////////////////////////////////////////////
int count = 0;
for (int i = 0; i < 100; i+=2) {
z[count] = x[i] * y[count];
count++;
}
for (int i =0; i < 5; i++) {
cout<<z[i]<<endl;
}
getche();
}
I think the answer is B: an optical drive
Hope this helps have a great night
Answer:
n= input("Please enter the next word: ")
x=1
while(n != "STOP"):
print("#" + str(x) + ": You entered " + n)
x=x+1
n= input("Please enter the next word: ")
print("All done. " + str(x-1) + " words entered.")
Explanation:
Answer:
A lot is wrong with the program given in the question. See the corrected version below:
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> int a, b, c;</em>
<em> //Three integers</em>
<em> a = 3; b = 4; c = a + b;</em>
<em> System.out.println("The value of c is " + c);</em>
<em> }</em>
<em>}</em>
Explanation:
Errors:
1. The main method had a semi colon after it. This is wrong
2. An open brace was supposed to follow the main method
3. The declaration of the variables was supposed to end with a semi colon
4. the correct comment style is // and not \\
5. Initialization of variables was supposed to end with semi colons
6. The output statement had C and not c which is the declared and initialized variable..Java is strictly typed
7. Open and closing braces for the class and method wrongly placed