Answer:
stop just stop this app is for studying not for ur insta
Explanation:
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:
is this a multiple-choice question?
Explanation:
**i promise to go back and provide a proper answer, i simply just wanted to secure a "spot" in answering**
Answer:
A and C
Explanation:
I got the question correct on Edge.
Answer:
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(true) {
System.out.print("Enter an integer (0 to exit): ");
int num = scan.nextInt();
if (num == 0) break;
if (num%3 == 0 && num%5 == 0) {
System.out.printf("%d is divisable by both 3 and 5.\n", num);
}
else if (num%3 == 0 && num%5 != 0) {
System.out.printf("%d is divisable by 3 but not by 5.\n", num);
}
else if (num%3 != 0 && num%5 == 0) {
System.out.printf("%d is divisable by 5 but not by 3.\n", num);
} else {
System.out.printf("%d is not divisable by 3 or 5.\n", num);
}
}
scan.close();
}
}