For a number to be palindrome, the reverse of the number and the original number must be the same.
<h3>The main program</h3>
The program written in Python, where comments are used to explain each line is as follows:
#This gets input for the number
num = input()
#This reverses the number
numrev = num[::-1]
#If the reverse and the original number is the same
if num == numrev:
#This prints Palindrome
print("Palindrome")
else:
#Otherwise, it prints Not palindrome
print("Not palindrome")
Read more about Python programs at:
brainly.com/question/26497128
Answer:
import java.util.Scanner;
public class salary{
public static void main(String []args){
System.out.println("Enter the monthly pay: ");
Scanner scn = new Scanner(System.in);
double salary = scn.nextDouble();
double result = salary-(salary*0.15*0.035*0.0575*0.0275*0.05)-75;
System.out.println("The net salary is: "+result);
}
}
Explanation:
first import the Scanner class for taking the input from user.
then, create the main function and print the message for enter the salary from user. scn.nextDouble() store the value enter by user into the result.
after that, calculate the net salary by calculating the deduction amount and then subtract with salary.
finally, print the result on the screen.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
As we know that the voltage applied to a series circuit is equal to the sum of the individual voltage drops." This simply means that the voltage drops have to add up to the voltage coming from the battey or batteries. 5V + 3V = 8V.
So in this question, the correct answer is b.
Because, there are two batteries in a series circuit, each has 1.5 volts. when we add the voltage of these two batteries , we will get the total voltage i.e 3 volts from both batteries.
Answer:
The "Page breaks before" option is the correct approach.
Explanation:
- This attribute specifies whether such a page interruption could perhaps appear just before any component to something which applies.
- This says that you would like this particular section to succeed at the beginning of that same page, irrespective of what it's about, they are being used for paged multimedia, for example, printed publications and otherwise texts or paperwork.
A non-trivial or predictable classification system is preferred in systematics for the reason that, it is <span> repeatable, objective, testable and </span>predictable. Predictable in a way that you <span>get more out of it than what you put in it. Hope this answers your question.</span>