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"
3
thank me later :))))))))
In computer programming<span>, </span>null<span> is both a value and a pointer. </span>Null<span> is a built-in constant that has a value of zero. It is the same as the character \0 used to terminate strings in C. </span>Null<span> can also be the value of a pointer, which is the same as zero unless the CPU supports a special bit pattern for a </span>null<span> pointer.</span>
Answer:
Following are the Statement in the Java Language .
Scanner out = new Scanner( System.in); // creating the object
datum = out.nextInt(); // Read the integer value bu using the instance of scanner class
Explanation:
In the Java Programming Language The scanner class is used for taking the user input from the standard input The definition of scanner class is java.util package means that if you taking the input by using scanner class firstly importing the predefined package i.e Java.util.
The description of the above code is given below
- Scanner out = new Scanner( System.in);: This statement created the instance "out" of the scanner class which is used for taking the input.
- datum = out.nextInt(); : This statement taking the integer input and store them into the datnum variable.
Answer:
Keeping the numeric values in a list makes it easier to apply the same computation to every data element.
Explanation:
A list or array in programming is a data structure, that has the location for each item it holds indexed. It eliminates the need to constantly create a variable to compute items of the same data types.
The list can store items of the same data type and iterate over them to compute the same calculation on each of them.