+ 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.
10 Answers
+ 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!!
+ 4
yes sir for the first digit to be 5.i am not getting how your function able to get the first digit
+ 4
OK sir Thnk you
+ 3
I will write a programme tonight
+ 3
hello Ipang you are liking my comments OK! but it was inefficient algorithm when compared to gordie sir.so, follow his algorithm
+ 3
don't think bad Ipang I would like to say don't follow mine....
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.