/* another programme about the same thing...list nums between 2 nums...*/
#include <iostream.h>
#include <string.h>
main()
{
cout << "====================" << endl;
cout << "please input 2 nums:" << endl;
int from, to;
cout << endl << "please input the from.value: ";
cin >> from;
cout << endl;
cout << "please input the to.value: ";
cin >> to;
cout << endl;
cout << "====================" << endl;
if (from > to)
{
int MID;
MID=from;
from=to;
to=MID;
} // 确保from <= to
int line = 0; // 断行
for (int i = from; i <= to; ++i)
{
cout << i << " ";
if (++line % 10 == 0) cout << endl; // 十次一断行
}
cout << endl;
cout << "the big one is: "<< to << endl;
return 0;
//this is a programme about list nums, aman designed.
}