Category Archives: Array

Array Self Input Size

 

integer odd even

problem: (courtesy:101cproblems.com)
Take an array of integer data type of size 5. Scan the values from the user. Now print the output like the following one-
Values in array: 10 25 20 15 30
Sum of odd values: 40
Sum of even values: 60

code:

Array Value Average

Take an array of integer data type of size 5. Scan the values from the user. Now print the average of integers which are greater than 100.

 

 

Find maximum and minimum value in an array

for maximum:

 

for minimum:

 

2d array codes

 

Code:

 

Monk and Welcome Problem

Another Problem:

 

String and Hackerearth

String Upper:

String Lower:

Lower Upper Both:

Hackerearth Problem:: Toggle String

Another Approach:

Another Approach:

 

Helpful Link: http://www.programmingsimplified.com/c/program/c-program-change-case

A good Array Example

Hackerrank problem:

 

Find Maximum and Minimum and Summation value from array

Did this problem from subeen vai’s book.

For maximum value:

For minimum value:

Summation:

Average:

Will give here

 

 

Reverse Array/Array Copy

code:

Used Subeen vai’s book for the example

another: