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:
Hypertext Markup Language
Explanation:
Hypertext Markup Language
Answer:
No, las sustancias homogéneas pueden ser mezclas.
Answer:
A = 120
B = 40
C = 70
Solution:
As per the question:
Manufacturer forced to make 10 more type C clamps than the total of A and b:
10 + A + B = C (1)
Also, 3 times as many type B as type A clamps are:
A = 3B (2)
The total no. of clamps produced per day:
A + B + C = 330 (3)
The no. of each type manufactured per day:
Now, from eqn (1), and (3):
A + B + 10 + A + B = 330
2A + 2B = 320
A + B = 160 (4)
Now, from eqn (2) and (4):
3B + B = 160
B = 40
Since, A = 3B
A = 
A = 120
Put the values of A and C in eqn (3):
120 + 40 + C = 330
C = 70