4. Write a program to enter 10 numbers using keyboard and put them in an array.
Now generate another array of same size from the array created in the first step
by satisfying the following conditions:
• If the number is prime then write 'P' to the same location of the second
array
• If the number is divisible by 5 then write 'F'
If the number is divisible by 3 then write ‘T'
If number is an Even number and neither divisible by 3 or 5 then write
If number is an Odd number and a non-prime number write 'N'
Consider the following example:
A=
12
11
19
49
27
30
61
35
39
7
B=
P
P.
T
P.
F
T
F
T
N
P
Answers
Answered by
0
Answer:
which standard question is this ??
Similar questions