Answer:
import java.util.Scanner;
import java.lang.*;
class Main
{
public static void main(String args[])
{
int n;
//For capturing the value of n
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the value of n:");
//The entered value is stored in the var n
n = scanner.nextInt();
int k=1;
printnum(n,k);
}
public static void printnum(int n,int k)
{
if(n%2==0)
{
for(int i=k;i<=n-1;i=i+2)
{
System.out.print(i);
}
System.out.println("");
}
else
{
for(int i=k;i<=n-1;i=i+2)
{
System.out.print(i);
}
System.out.println("");
}
n--;
if(n<=1)
{
System.exit(0);
}
else
{
printnum(n,k+1);
}
}
}
Explanation:
The program is self explanatory.
Answer:
C (Window/Orphan control)
Explanation:
An "orphan" in formatting is a single line of text that is left alone/separated from the rest of the paragraph. Orphan control prevents this from happening by keeping lines together.
Answer:
It works as a roadmap which tells search engines what content is available on the website and leads search engines to most important pages on the site. The standard XML tag used for sitemaps can be described as a schema and is used by all the major search engines.
Explanation:
mark me brainliest!!
Answer:
The Statement for selecting values from the table in SQL is given below,
SELECT vendor_name, vendor_contact_last_name, vendor_contact_first_name FROM Vendors;
Explanation:
SQL stands for Structured query language which is used to insert, update, delete and modify the value in a table.
There are five types of SQL-
1. Data definition language
2. Data manipulation language
3. Data control language
4. Transaction Control Language
5. Data Query Language
The SELECT statement comes under DDL which is used to select and display values from a table.
We can use select statement in two ways-
1. SELECT column_name1, column_name2 ........column_nameN FROM Table_name;
2. SELECT * FROM tablename; ( This is used to select all values from the table name)
We can also give conditions using WHERE clause while selecting values.