init
This commit is contained in:
21
exam-basedir01/subjects/aff_z/subject.en.txt
Normal file
21
exam-basedir01/subjects/aff_z/subject.en.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
Assignment name : aff_z
|
||||
Expected files : aff_z.c
|
||||
Allowed functions: write
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Write a program that takes a string, and displays the first 'z'
|
||||
character it encounters in it, followed by a newline. If there are no
|
||||
'z' characters in the string, the program writes 'z' followed
|
||||
by a newline. If the number of parameters is not 1, the program displays
|
||||
'z' followed by a newline.
|
||||
|
||||
Example:
|
||||
|
||||
$> ./aff_a "abc" | cat -e
|
||||
z$
|
||||
$> ./aff_a "RaInB0w d4Sh!" | cat -e
|
||||
z$
|
||||
$> ./aff_a "ThE C4k3 Is a L|3" | cat -e
|
||||
z$
|
||||
$> ./aff_a | cat -e
|
||||
z$
|
||||
Reference in New Issue
Block a user