Answer questions (don’t put random things because you can get reported and possibly suspended) to get points.
The points are needed to ask questions.
If a question helped you, you can rate it or give a thanks (click the ❤️)
For the questions you ask, you can give brainiest to the best answer. Giving brainiest helps the person you gave it to, and it gives back some points you used for the question.
If you have any more questions, feel free to ask. As always, I hope this helps and hope you have a great day and brainiest is always appreciated.
Answer:
#include <iostream>
using namespace std;
int main ()
{
float number = 0.0;
float check = 45.6;
cout << "Enter Numeber";
cin >> number;
if (number > check)
{
cout << " Greater than 45.6" << endl;
}
else
{
cout << " Lesser than 45.6" << endl;
}
return 0;
}
Explanation:
declare and initialize float type variable number. Float is used to cater for decimal but not using to much space which is used by double data type. Check value is stored in other variable called check.
Take input from user in number and write an if statement to check whether entered number is less than 45.6 or greater.If number is lesser than check display message "Greater than 45.6" other wise display message "Lesser than 45.6"
Answer:
b-Nested Loops
Explanation:
To create a 1-D array we use single loop.For example:-
int a[10];
for(int i=0;i<10;i++)
{
cin>>a[i];
}
Taking input of a 1-D array.
For creating a 2-D array we use nested loops.
int a[row][column];
for(int i=0;i<row;i++)
{
for(int j=0;j<column;j++)
{
cin>>a[i][j];
}
}
Hence the answer for this question is nested loops.
Answer:
You can select non contiguous cells by holding down the Ctrl key as you select, with the mouse.