### How To Make it Limited to 100?

 ``1234567891011121314151617181920212223242526272829303132333435363738`` ``````#include #include void main() { int i,j,smalltest,temp; int Array[8]; cout<<"Masukkan nilai!!!"<>Array[a]; } cout<<"Data sebelum di urutkan:\n\n"; for(int k=0;k<=7;k++) { cout<Array[j])//Ascending { smalltest=j; } } temp=Array[i]; Array[i]=Array[smalltest]; Array[smalltest]=temp; } cout<<"\n\nData setelah di urutkan:\n\n"; for(int l=0;l<=7;l++) { cout<

HOW TO MAKE IT LIMITED LIKE "WHEN YOU FILL THE NUMBER,IT MUST NOT LARGER THAN 100,& WHEN YOU PUT LARGER,IT WILL END" HOW CAN I MAKE ? TQ
I am unable to understand your language in code. I think you are trying to sort a list of 8 elements.

What you want in it? Ask question clearly.
Last edited on
int Array[5];

void TestNumber()
{
for (int a=0; a<=5; a++)
{
int x=0;
cout << "Number: ";
cin >> x;
if ((x>0) && (x<=100))
{Array[a]=x;}
else
{cout << "x<>100 Exit now";}
}
cout << endl;
for (int a=0; a<=5; a++)
{
cout <<Array[a] << " " ;
}
}
Topic archived. No new replies allowed.