mit 6.00 自学笔记 01

7

Upload: ruby-woo

Post on 22-Mar-2016

421 views

Category:

Documents


7 download

DESCRIPTION

MIT 6.00 Introducntion to programming and CS 自学笔记, 用iPad (upad)写成

TRANSCRIPT

Page 1: MIT 6.00 自学笔记 01
Page 2: MIT 6.00 自学笔记 01
Page 3: MIT 6.00 自学笔记 01
Page 4: MIT 6.00 自学笔记 01
Page 5: MIT 6.00 自学笔记 01
Page 6: MIT 6.00 自学笔记 01

Exercises:

1. Write a program that asks the users to type in a string,and then tells the user how long that string was.2. Ask the user for a string, and then for a number. Print outthat string, that many times. (For example, if the string isHELLO and the number is 3, you should print outHELLOHELLOHELLO .)3. What would happen if a mischievous user typed in a wordwhen you ask for a numb? Try it.

Page 7: MIT 6.00 自学笔记 01