WAP to print the sum of all the PRIME or EVEN integers in the array and ignore the remaining.
roshan.parate.73
0
Newbie Poster
Recommended Answers
Jump to PostOK. What have you tried so far?
Jump to PostWhat is WAP? Google says it's " Wireless Appication Protico", but I doubt that's what you are talking about.
Jump to PostIf you haven't done something then start coding.
Take user input, Then check that each character is int or not.
Then apply prime no. logic to check wether it is prime or not and then sum it up.And then with your effort of coding, post specific doubt in it.
All 9 Replies
gerard4143
371
Nearly a Posting Maven
roshan.parate.73
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
dev90
10
Light Poster
Learner010
99
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
roshan.parate.73
0
Newbie Poster
gerard4143
371
Nearly a Posting Maven
L7Sqr
227
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.