to remove the repeated numbers from the given .
i.e..,
if the input is 12233
output should of
123

Answer Posted / qapoo

int main()
{
int a[5]={1,2,2,3,3};
for(int i=0;i<5;i++)
{
if(a[i]<a[i+1])
cout<<a[i];
}
return 0;
}

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of abstract class?

577


What is new keyword in oops?

591


What is balance factor?

589


Is data hiding and abstraction same?

569


What is polymorphism in oops with example?

531






How do you explain polymorphism?

592


why reinterpret cast is considered dangerous?

1903


How long to learn object oriented programming?

565


How do you achieve runtime polymorphism?

571


What is overriding in oops?

602


Why do we need polymorphism in c#?

686


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1147


What are the three main types of variables?

600


What is ambiguity in inheritance?

625


Why is encapsulation used?

577