Answer:
Tags can be identified as they are written as <tagname> Something </tagname>
<tagname> this tag is called start tag.
</tagname> this tag is called as end tag.
for ex:<p> This is a paragraph </p>
There are some elements with no end tag.for ex:- <br> tag.
Attributes are used to provide additional information to an HTML element.
Every element can have attributes.
for Ex:- <h1 style="background-color:red";>MY WEBSITE </h1>
So the background of h1 will become red.
Yes thats correct- but if
Multiply what he makes a month by six
Answer:
Scanner can be used to read tokens from the console window (user input)
Explanation:
Scanner is a class used in some programming languages to obtain inputs from users.
It is mostly well developed in Java programming language and used exclusively for taking and obtaining inputs.
Scanner takes input in primitive types such as doubles, floats and integers. IT also takes string inputs.
Here is a code snippet where the class scanner is used:
Scanner input = new Scanner (System.in)
The code above creates an object of the scanner class
Answer:
void ranges(int x[], int npts, int *max_ptr, int *min_ptr)
{
*max_ptr=*min_ptr=x[0];
for(int i=1;i<npts;i++)
{
if(x[i]>*max_ptr) //this will put max value in max_ptr
*max_ptr=x[i];
if(x[i]<*min_ptr) //this will put min value in min_ptr
*min_ptr=x[i];
}
}
Explanation:
The above function can be called like :
ranges(x,n,&max,&min);
where x is array and n is number of elements and max and min are address of variables where maximum and minimum values to be stored respectively.