mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
557 B
21 lines
557 B
6 years ago
|
## printprogramname
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
|
Write a **program** that prints the name of the program.
|
||
|
|
||
|
Example of output :
|
||
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/printprogramname$ go build main.go
|
||
|
student@ubuntu:~/[[ROOT]]/printprogramname$ ./main
|
||
5 years ago
|
main
|
||
|
student@ubuntu:~/[[ROOT]]/printprogramname$ go build
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/printprogramname$ ./printprogramname | cat -e
|
||
|
printprogramname$
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/printprogramname$ go build -o Nessy
|
||
|
student@ubuntu:~/[[ROOT]]/printprogramname$ ./Nessy
|
||
|
Nessy
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/printprogramname$
|
||
6 years ago
|
```
|