number. Refer sample input(s) and output(s) for further specifications. Sample Input 1: 12345 Sample Output 1: No Sample Input 2: 13355 Sample Output 2: Yes Sample Input 3: -5 Sample Output 3: Invalid...


Write shall scripting program


number.<br>Refer sample input(s) and output(s) for further<br>specifications.<br>Sample Input 1:<br>12345<br>Sample Output 1:<br>No<br>Sample Input 2:<br>13355<br>Sample Output 2:<br>Yes<br>Sample Input 3:<br>-5<br>Sample Output 3:<br>Invalid Input<br>Type here to search<br>

Extracted text: number. Refer sample input(s) and output(s) for further specifications. Sample Input 1: 12345 Sample Output 1: No Sample Input 2: 13355 Sample Output 2: Yes Sample Input 3: -5 Sample Output 3: Invalid Input Type here to search
2.<br>N Digit Prime Numbers<br>A passenger with a ticket number 'n' can avail<br>the special drink if the number of digits 'd' in 'n'<br>is the same as the number of even numbers in<br>it or if the number of digits 'd' in 'n' is the same<br>as the number of odd numbers in it.<br>Given a ticket number of a passenger find if the<br>passenger can avail the special drink.<br>Input Format:<br>The first line of input consists of an integer<br>corresponding to the 'n.<br>Output Format:<br>Print

Extracted text: 2. N Digit Prime Numbers A passenger with a ticket number 'n' can avail the special drink if the number of digits 'd' in 'n' is the same as the number of even numbers in it or if the number of digits 'd' in 'n' is the same as the number of odd numbers in it. Given a ticket number of a passenger find if the passenger can avail the special drink. Input Format: The first line of input consists of an integer corresponding to the 'n. Output Format: Print "Yes" if the passenger can avail a special drink else print "No" Print Invalid Input if the input is not a positive number. Refer sample input(s) and output(s) for further specifications. Sample Innut 1. P Type here to search

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here