8-16 Tibetan poems and 8-16 Tibetan Poems
5-24 Tibetan Poems (20 points)
This question requires the compilation of a program to decrypt the Tibetan tail poems.
Input Format:
The input is a Chinese ending poem with four sentences in total. Each sentence is a line, but the sentence is not necessarily a long sentence. The sentence can contain at least one Chinese Character and at most nine Chinese characters. Note: a Chinese character occupies two bytes.
Output Format:
Extract the last Chinese character of each sentence and connect them to form a string and output it. At the same time, enter a line break at the end.
Input example:
Leisurely rural style, however, the heart is difficult to flat, and the orchid fragrance is more and more quiet
Output example:
Calm and calm
- # Include <stdio. h>
- # Include <stdlib. h>
- # Include "math. h"
- # Include "string. h"
- Int main ()
- {
- Char * p [4], str [20];
- Int I;
- For (I = 0; I <= 3; I ++ ){
- Gets (str );
- P [I] = (char *) malloc (sizeof (str) + 1 );
- Strcpy (p [I], str );
- }
- Int n;
- For (I = 0; I <= 3; I ++ ){
- N = strlen (p [I]);
- Printf ("% s", p [I] + N-2 );
- }
- Return 0;
- }