+ 1

Write a program to input 10 numbers in an array and then print the numbers starting with 5. Using c++.

suppose the input is { 56,87,555,34,52,79,578,67,8,5} then it should print ... 56,555,52,578,5.

19th Dec 2017, 8:28 AM
Harsh Tirkey
Harsh Tirkey - avatar
10 Respuestas
+ 4
@gordie sir I think first we have to reverse the number I think...and then we have to check no sir!! I'm not getting how your function works!!
24th Dec 2017, 4:59 AM
SAKSHI
SAKSHI - avatar
+ 4
yes sir for the first digit to be 5.i am not getting how your function able to get the first digit
24th Dec 2017, 5:04 AM
SAKSHI
SAKSHI - avatar
+ 4
OK sir Thnk you
24th Dec 2017, 5:11 AM
SAKSHI
SAKSHI - avatar
+ 3
I will write a programme tonight
21st Dec 2017, 12:46 PM
SAKSHI
SAKSHI - avatar
+ 3
hello Ipang you are liking my comments OK! but it was inefficient algorithm when compared to gordie sir.so, follow his algorithm
24th Dec 2017, 5:54 AM
SAKSHI
SAKSHI - avatar
+ 3
don't think bad Ipang I would like to say don't follow mine....
24th Dec 2017, 6:23 AM
SAKSHI
SAKSHI - avatar
0
int x=0 while (x<input.length){ if (input[x][0]==5){ cout << input[x][0]; } else { continue;} x++ } fill up other stuffs before compiling.
19th Dec 2017, 9:13 AM
‎ ‏‏‎Anonymous Guy