No. The computer dose not understand what you are attempting to do, therefore it will not understand how to check for logic errors. The compiler will only check for syntax errors.
B. What determines the growth rate of a fish population
Answer:
double decimal1, decimal2;
int whole;
Explanation:
Required
Declare 2 decimals and 1 int.
The syntax to declare a variable is:
<em>data-type variable-name;</em>
To declare decimal, we simply make use of double or float data types.
So, we have:
double decimal1, decimal2; ----> for the decimal variables
And
int whole; ---- for the whole number
Answer:
index.html
Explanation:
The name of the html file for the homepage of a website is usually "index.html"
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int minn=INT_MAX;
int maxx=INT_MIN;
int n1,n2,n3,n4,n5;
cout<<"enter five Numbers:";
//read 5 Numbers
cin>>n1>>n2>>n3>>n4>>n5;
// find maximum
if(n1>maxx)
maxx=n1;
if(n2>maxx)
maxx=n2;
if(n3>maxx)
maxx=n3;
if(n4>maxx)
maxx=n4;
if(n5>maxx)
maxx=n5;
// find minimum
if(n1<minn)
minn=n1;
if(n2<minn)
minn=n2;
if(n3<minn)
minn=n3;
if(n4<minn)
minn=n4;
if(n5<minn)
minn=n5;
// print maximum and minimum
cout<<"maximum of five numbers is: "<<maxx<<endl;
cout<<"minimum of five numbers is: "<<minn<<endl;
return 0;
}
Explanation:
Declare two variables "minn" & "maxx" and initialize them with INT_MAX and INT_MIN respectively.Then read the five number from user and compare it with "minn" & "maxx" ,if input is greater than "maxx" then update "maxx" or if input is less than "minn" then update the "minn". After all the inputs, "minn" will have smallest and "maxx" will have largest value.
enter five Numbers:5 78 43 55 12
maximum of five numbers is: 78
minimum of five numbers is: 5