Answer:
Sliding elements in list format.
Cards.
Images.
Buttons.
Overflow screens.
Multiple selection app interactions.
Text input fields.Explanation:
Answer:
#include <iostream>
using namespace std;
int main()
{
int myArray[] = {-11,3,-8,30,-2,0,5,7,-100,44};
int n = sizeof(myArray)/sizeof(myArray[0]);
for(int i=0;i<n;i++){
if(myArray[i]>=0){
cout<<myArray[i]<<endl;
}
}
return 0;
}
Explanation:
First include the library iostream in c++ programming for using the input/output function.
Then, create the main function and define the array with the elements which contain both positive element as well negative elements.
after, use the for loop for traversing the array and inside the loop take the conditional statement for check if element in the array is positive.. if it true then print the element on the screen with separate line.
Answer:
1. C++ is fun
Explanation:
Writing the code more clear:
int number;
cin >> number;
if (number > 0)
cout << "C++";
else
cout << "Soccer";
cout << " is ";
cout << "fun" << endl;
On the IF line, the conditional expression is evaluated TRUE (11 > 0), so the string "C++" is printed.
Then, the ELSE sentence is not executed since the expression has been already evaluated as TRUE.
Notice there are no additional brackets, so only the line cout << "Soccer"; is considered inside the ELSE.
The two remaining lines are executed always.
The final result is:
C++ is fun
Answer:
Please see the attached file for the
Explanation:
D. 4 binary digits in a single hexadecimal