The Memo object and a test
Answers are for parents and teachers.
1
After for i := 1 to 6 do Memo1.Lines.Add(IntToStr(5 * i)); what are the number of lines and the last line?
6 lines, the last is 30
2
The sum of these lines (5, 10, 15, 20, 25, 30)?
105
3
How many divisors does n = 49 have (1, 7, 49)?
3
4
Write two statements that clear Memo1 and add the line 'Salom' to it.
Memo1.Lines.Clear; Memo1.Lines.Add('Salom');
5
In which situation is a Memo chosen instead of an Edit? Write one example.
When the result has many lines, for example the list of all divisors of a number.