Given an array of numbers, identify all odd numbers and print their count, sum, and average up to 2 decimal places.
Unlock detailed company stats for this questionUpgrade
Story-based framing around ticket pricing. Sample: input 7 then 1 2 3 4 5 6 7 gives Count: 4, Sum: 16, Average: 4.00.
Format · TCS NQT coding question 1 of 2: easy, simulation, 35 minutes.
Community answers
No answers contributed by the community yet.
Related questions
Given an array where the cost of adding two numbers is their sum, find the minimum cost of adding all the numbers.Given an array of integers, print all subarrays that sum to zero.Given an array of integers and an integer k, find the number of continuous subarrays whose sum equals k.Related courses

Course

Course
Course
