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: They are forms of of carrying data from communication devices. The difference is the medium where the signal travels.
Explanation:
Hi, the difference between guided and unguided media is that in the guided media, the signal travels through a physical medium whereas, in unguided media, the signal travels through the air.
Guided and unguided media are types of transmission media.
The transmission media carries electromagnetic signals, that transmit data between communicating devices like computers.
Python:
sentence = “this is the sentence.”
size = len(sentence)
C++:
string sentence = “this is the sentence.”
int size = sentence.size()
* Remember strings are just arrays of characters.
a fundamental domain or fundamental region is a subset of the space which contains exactly one point from each of these orbits . It serves as a geometric realisation for the abstract set of representatives of the orbits . There are many ways to choose a fundamental domain .
hope this help
Inspect them and make sure that they are exact copies then delete one if they are the same.