+ 1

Write a program to determine ascending order(in any language)

If anyone posts in a way,please don't post that way..but if you have another idea,than post plz....

19th Mar 2017, 5:43 PM
sazzad hossain rafi
sazzad hossain rafi - avatar
3 Réponses
+ 3
int main (){ int a [10], i; //input part pls add // logics for (i=0;i <8;i++){ if (a [i]>a [i+1]){ cout <<"Not in order!"; return -1; } } cout<<"List in ascending order"; }
19th Mar 2017, 6:01 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 2
Thanks #Devender Mahajan
19th Mar 2017, 6:03 PM
sazzad hossain rafi
sazzad hossain rafi - avatar
+ 1
Always welcomed
19th Mar 2017, 6:05 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar