By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,670 Members | 1,526 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,670 IT Pros & Developers. It's quick & easy.

Add the numbers of Array A and Array B in each position and check whether the sum

P: 1
Consider that there are two arrays A and B each of size 10. Array A contains numbers with multiples of 5 of any range. Array B contains numbers with multiples of 3 of any range. Write a PERL code to perform and display the following.
 Add the numbers of Array A and Array B in each position and check whether the sum is a prime number or not.
 List the positions in which the sum is prime and display in the web page
 Create a matrix of values of Array A (column 1), Array B (column 2) and Sum of Array A and Array B' in each position (column 3).
 Display the sum of common multiples of 3 and 5 from the array.
Apr 29 '17 #1
Share this Question
Share on Google+
1 Reply


Expert Mod 100+
P: 589
You need to do your own homework assignment.

If you need help troubleshooting your script AND have a specific question regarding your code, then post your code and question and we'll help but not do your assignment for you.
Apr 29 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.