Show us the code you have, then we'll give more tips.
I guess the idea of our homework is to learn bubble sort.And I am sure you can find a ready solution for that.
Where should I start ?
procedure MyHomeWork;var aKey, bKey, cKey: char;beginwriteln('Press first number and press ENTER...');read(aKey); //=> this will read first character entered and store it in aKey variable (after ENTER pressed)writeln('Press second number and press ENTER...');read(bKey); //=> this will read second character entered and store it in bKey variable (after ENTER pressed)writeln('Press third number and press ENTER...');read(cKey); //=> this will read third character entered store and it in cKey variable (after ENTER pressed)... // => Your turn now...end;
QuoteWhere should I start ?Code: [Select]procedure MyHomeWork;var aKey, bKey, cKey: char;beginwriteln('Press first number and press ENTER...');read(aKey); //=> this will read first character entered and store it in aKey variable (after ENTER pressed)writeln('Press second number and press ENTER...');read(bKey); //=> this will read second character entered and store it in bKey variable (after ENTER pressed)writeln('Press third number and press ENTER...');read(cKey); //=> this will read third character entered store and it in cKey variable (after ENTER pressed)... // => Your turn now...end;
kmalpha, why bother?! just donate $5 and you'll get the code! help FPC/Lazarus community to grow.