Bai tap chuong 2.pdf

# Bai tap chuong 2.pdf - Bài tập chương 2 Bài 1 Viết...

• 2

This preview shows page 1 - 2 out of 2 pages.

Bài t p ch ươ ng 2 Bài 1. Vi ế t hàm ki m tra xem chu i S có ph i là chu i ñố i x ng hay không? HD: Gi s chu i là chu i ñố i x ng. N ế u phát hi n 1 v trí mà ñố i x ng v i nó (cùng v trí nh ƣ ng tính t cu i chu i) thì chu i không còn ñố i x ng n a. Bài 2 . Vi ế t hàm tìm ký t xu t hi n nhi u nh t trong chu i ñ ó và s l n xu t hi n. Bài 3. Nh p h tên c a m t ng ườ i t bàn phím. Hãy chu n hóa chu i h tên này. (Xóa các kho ng tr ng th a và ký t ñầ u tiên c a h , ch lót và tên ph i vi ế t hoa, các ký t còn l i vi ế t th ườ ng). Bài 4. Vi ế t ch ươ ng trình nh p m t s nguyên, xu t l i s ñ ó d ng chu i nh ư ng có d u “,” ng ă n cách hàng tri u, ngàn. Ví d : Nh p: N = 123456789 Xu t: S = “123,456,789” HD: Chuy n s N sang chu i S. Đ i lùi t cu i chu i và c 3 ký t s chèn d u ph y vào.

Subscribe to view the full document.

• Spring '12
• NguyenXuanLong,JohnLafferty

{[ snackBarMessage ]}

###### "Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern