This question can easily be answered if you have an idea about handling spreadsheet applications.
Let's say MS Excel
<span>Column A contains numbers from rows 1 to 20. You can use the formula _______ to find the value of the largest number divided by the total number of value.
In MS Excel, the formula MAX ( ___ ) and COUNT ( ____ ) to get the value
= MAX(A1:A20) / COUNT(A1:A20)</span>
Answer:
PROGRAMMING APPROACH:
- Define the necessary header file using namespace.
- Define the main() method.
- Declare variable inside the function().
- Print result.
Explanation:
Required C++ Code:
#include<iostream>
#include<string>
using namespace std;
int main()
{
string condStr;
int userVal;
cin>>userVal;
condStr=(userVal<0)?("negative"):("non-negative");
cout<<userVal<< " is "<< condStr <<"."<<endl;
}
OUTPUT:
-2
-2 is negative.
im using it for eddgenuity