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 type of questions
Can a destructor be called directly?
What are the 5 oop principles?
What is the main purpose of inheritance law?
What are oops methods?
What is abstraction in oops?
What is destructor give example?
What is class encapsulation?
Where You Can Use Interface in your Project
What is meant by multiple inheritance?
Why do pointers exist?
What is advantage of inheritance?
How long to learn object oriented programming?
What is polymorphism and why is it important?
Are polymorphisms mutations?