0% found this document useful (0 votes)
2 views2 pages

Array Programs (Class 10)

The document outlines a series of programming tasks involving arrays, specifically focusing on inputting 10 numbers into an integer array. The tasks include calculating the total sum, separating sums of even and odd numbers, summing prime numbers, and identifying the positions of the largest and smallest numbers. Several tasks are listed but some are incomplete or not detailed.

Uploaded by

jaitiarora6
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Array Programs (Class 10)

The document outlines a series of programming tasks involving arrays, specifically focusing on inputting 10 numbers into an integer array. The tasks include calculating the total sum, separating sums of even and odd numbers, summing prime numbers, and identifying the positions of the largest and smallest numbers. Several tasks are listed but some are incomplete or not detailed.

Uploaded by

jaitiarora6
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Array Programs

P-1) Write a program to input 10 numbers into an integer array and find the sum of all numbers in it.
P-2) Write a program to input 10 numbers into an integer array and find the sum of even and odd
numbers separately.
P-3) Write a program to input 10 numbers into an integer array and find the sum of prime numbers
only.
P-4) Write a program to input 10 numbers into an integer array and find the position of the largest and
the smallest number.
P-5)

P-6)

P-7)
Array Programs
P-1) Write a program to input 10 numbers into an integer array and find the sum of all numbers in it.
P-2) Write a program to input 10 numbers into an integer array and find the sum of even and odd
numbers separately.
P-3) Write a program to input 10 numbers into an integer array and find the sum of prime numbers
only.
P-4) Write a program to input 10 numbers into an integer array and find the position of the largest and
the smallest number.
P-5)

P-6)

P-7)

You might also like