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
Can we create object of abstract class?
What is new keyword in oops?
What is balance factor?
Is data hiding and abstraction same?
What is polymorphism in oops with example?
How do you explain polymorphism?
why reinterpret cast is considered dangerous?
How long to learn object oriented programming?
How do you achieve runtime polymorphism?
What is overriding in oops?
Why do we need polymorphism in c#?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What are the three main types of variables?
What is ambiguity in inheritance?
Why is encapsulation used?