The rules of a programming language constitute its syntax.
Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int[] array = new int[10];
int index = 0;
while(index < array.size()){
int number = (rand() % 100) + 1;
for (int i = 0; i < 1; i++) {
array[index] = number;
cout<< "Position "<< index << "of the array = "<< number << endl;
++index;
}
}
}
Explanation:
The while loop in the source code loops over a set of code ten times, The for loop only loops once to add the generated random number between 1 and 100 to the array of size 10. At the end of the for loop, the index location and the item of the array is printed out on the screen. The random number is generated from the 'rand()' function of the C++ standard library.
Answer:
Assuming that's in python, the answer would be 4
Explanation:
The ** operator is for raising a number to a power.
The // operator returns the number of times the right number can fit into the left (i.e round division).
So the answer would be three squared over two rounded down, or 4.
Yes because the main story is 1+1 so it would be
Amelia wants to create a website using the Python computer language to code her site. She will also use CodeSkulptor3 is an example of browser-based code editor. The correct option is A.
<h3>What is python?</h3>
Python is a programming language generally used to make websites and software. Automated tasks and data analysis are also carried out using python.
CodeSkulptor3 is also a browser-based Python interpreter. It has implemented a subset of Python 3.
Thus, CodeSkulptor3 is an example of browser-based code editor. The correct option is A.
Learn more about python.
brainly.com/question/19045688
#SPJ1