how to take unknown no of input in cpp
Related code examples
declare an array of size ten of int. input the marks of ten students. calculate average of these numbers. output the average
write a method (average) that takes as input a variable number of integers. the method should return the average of the integers as a double.
hackerrank solutions the first line of input contains the original string. the next line contains the substring.