KEMBAR78
DS With C Task-1 | PDF
0% found this document useful (0 votes)
4 views1 page

DS With C Task-1

The document outlines a series of programming tasks involving arrays, including finding maximum and minimum values, copying arrays, counting even and odd integers, checking for palindromes, calculating sums of elements, replacing negative numbers, displaying characters of a word, and counting the length of a string. Each task specifies the number of elements to be inputted and the operations to be performed on the arrays. The tasks are designed to enhance understanding of array manipulation in programming.

Uploaded by

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

DS With C Task-1

The document outlines a series of programming tasks involving arrays, including finding maximum and minimum values, copying arrays, counting even and odd integers, checking for palindromes, calculating sums of elements, replacing negative numbers, displaying characters of a word, and counting the length of a string. Each task specifies the number of elements to be inputted and the operations to be performed on the arrays. The tasks are designed to enhance understanding of array manipulation in programming.

Uploaded by

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

1.

Write a program to input 10 numbers into an array and find the maximum and minimum
element in the array.

2.Input 5 values into an array A. Copy all the values into another array B, and display both
arrays.

3.Write a program to input 10 integers into an array and count how many of them are even
and how many are odd.

4.Input 5 elements into an array. Check whether the array is a palindrome (i.e., same
forward and backward).

5. Input 10 integers. Calculate the sum of: The first 5 elements and The last 5 elements
.Display both sums separately.

6. Input 10 numbers into an array. If any number is negative, replace it with 0 and display the
updated array.

7.Input a word into a character array and display each character on a new line.

8.Create a character array, input a string, and count the total number of characters (length).

You might also like