Abstraction make programming languages easier to use as It eliminates the need for codes to be automated.
<h3>How does abstraction make programming languages easier to implement?</h3>
Data abstraction is known to be a tool that helps a person to change a complex data structure into simple ones which can be used easily.
Note that Abstraction make programming languages easier to use as It eliminates the need for codes to be automated.
Learn more about abstraction from
brainly.com/question/7994244
#SPJ1
Answer:
Block style is a special style or format that is adopted to write Business Letters.
Explanation:
We all know that for writing Business Letters a formal style is adopted in order to convey important information regarding business matters.
So by following Block Style in the Business Letters we mean to write the letter according to the rules below:
Text for the letter should be justified Left completely.
Single spacing should be used for text.
Double spacing should be used for paragraphs.
1 inch margin should be left on each side.
Built-in Letter Wizard for formatting can also be used while dealing with BLOCK STYLE FOR BUSINESS LETTERS.
I hope it will help you!
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.