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

what is graphics

2202


What is inheritance write a program to show use of inheritance?

854


What is abstraction in oop?

836


What is multilevel inheritance?

935


What is difference between inheritance and polymorphism?

761


What is use of overloading?

845


What do you mean by Encapsulation?

799


What is advantage of inheritance?

916


write a program that takes input in digits and display the result in words from 1 to 1000

2177


What is balance factor?

802


What is difference between pop and oop?

788


How do you define a class in oop?

841


What are the benefits of oop?

846


What does I oop mean?

819


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1629