Import java.util.Scanner;
class hola
{
public static void main(String[]args)
{
Scanner x=new Scanner(System.in);
int a=x.nextInt();
int b;
if(a>20&&a<100)
{
b=a%12;
if(b%2==0){
System.out.print("es par"+b);
}
else{
System.out.print("es impar"+b);
}
}
}
}
Algorithm is part of computer science. You an learn it on Khan academy. (you probably werent looking for this but no one was answering)
The program that ask the user to type there first name and then print out how many letters that is in there name is as follows:
x = input("what is your first name: ")
y = len(x)
print(f"There are {y} letters in your name")
<h3>Code explanation;</h3>
The code is written in python.
- Firstly, we store the users name in the variable x.
- Then, we find the length of the users inputted name and store it in a variable y.
- Finally, we print the length of the users name using the print function.
learn more on python here: brainly.com/question/26738945