Answer:
for (int i = 0; i < 9; ++i)
{
int k = 0;
while (k < 20 && scotus[i][k] != '')
{
cout << scotus[i][k];
k++;
}
cout << "\n";
}
Explanation:
scotus here is a two dimensional array. It contains names of 9 justices. so the loop starts from 0 and ends when i points to the last name element in the array. Then a while loop is used to check that name is longer than twenty characters and will keep on printing each output on the separate line.
Another way to write this:
for (int i = 0; i < 9; i++){
cout << scotus[i] << "\n";
}
This loop will keep on executing and printing the names of the nine justices at every iteration until it reaches the end of the array (last element of the array scotus).
Answer:
im not sure but my brother told me it's Simple Network Management Protocol
the following C++ function will return true if the given non - negative number is multiple of 5 or 3 else it will return false.
bool function( int x ){
// variable to check if it is multiple of both or not
int number =0;
if(3%x == 0){
number++;
}
if(5%x == 0){
number++;
}
// Now returning by deciding
if( number <=1)
return true;
else
return false
}