1 / 4

344-521 องค์ประกอบและสถาปัตยกรรมคอมพิวเตอร์ Computer Architecture and Organization

344-521 องค์ประกอบและสถาปัตยกรรมคอมพิวเตอร์ Computer Architecture and Organization. Pretest. Pretest: 1. Prime palindrome is a number which is a prime number and a palindrome (the same number when read forward as backward). Example: 5, 7, 151, 353. Pretest: 1.

Télécharger la présentation

344-521 องค์ประกอบและสถาปัตยกรรมคอมพิวเตอร์ Computer Architecture and Organization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 344-521องค์ประกอบและสถาปัตยกรรมคอมพิวเตอร์Computer Architecture and Organization Pretest

  2. Pretest: 1 • Prime palindrome is a number which is a prime number and a palindrome (the same number when read forward as backward). • Example: 5, 7, 151, 353

  3. Pretest: 1 • Write a program that finds all prime palindrome in the range of two supplied numbers a and b ( 5 < a < b <= 100,000); both a and b are considered to be within the range. • Example of Sample input and output • Input: 5 500 • Output: 5 7 11 101 131 181 191 313 353 373 383

  4. Pretest: 2 • จงเขียนโปรแกรมเพื่อค้นหาข้อมูลที่ต้องการจากแฟ้มข้อมูลชื่อ data.txt • ตัวอย่างแฟ้มข้อมูล data.txt Input: Enter data to search: 42 Output: 42 is found.

More Related