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
What does enum stand for?
What are the 5 oop principles?
What is the purpose of polymorphism?
can inline function declare in private part of class?
What is encapsulation oop?
What are the 4 pillars of oop?
What is a function in oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is an advantage of polymorphism?
How do you answer polymorphism?
What is use of overloading?
What is the example of polymorphism?
What is abstraction with example?
Why multiple inheritance is not possible?