Write a program that askes the user to input two chacter strings of length 10 and simply output them. You will be surprised that even such an easy task could cause you unexpected problems, as scanf() behaves in a weird way. This task does not count towards the final grades. It's for your practice only. Make sure you get this problem sorted out and you know exactly what happened before Quiz #1 on Oct 7th. Dealing with basic string I/O can be very frustrating. Once you get stuck in such little things and waste too much time in an exam, you will get poor grades. Make sure you know this weirdness of scanf().
本題不算分,純粹給各位練習用。請務必在考試前搞清楚為什麼 scanf() 有時會有怪異的行為,免得考試時被這個小問題卡住浪費大量時間!
abcdefghij
asdfagsddd
abcdefghij
asdfagsddd