Answer to Question linux-2

Start a text editor, such as gedit. To start gedit, use command
  gedit&
Type the program and save it.