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:
int x = 10;
Explanation:
This would work in many languages (C/C++/C#/Java).
Answer:
The answer is "heading"
Explanation:
Headings, which appear into your document must be marked simply, objectively and correctly because it shows the final report structure and enable to easy access with specific information.
- It also promotes to read the document. So, its consistency is ensured in the headings.
- In sort documents, it can't require any heading, but it Nila created a report, in which she requires heading and then she update the content of the tables, and other choices can't be described in the given scenario, that's why it is correct
I would own Apple. Because I would be rich and create apple products
Answer:
where is the picture?????