红联Linux门户
Linux帮助

linux新手的问题,大家能帮帮忙吗

发布时间:2006-11-15 18:04:39来源:红联作者:kan0306
根据以下要求写个代码
[font=Arial]Create a simple shell script that will prompt the user to type in their name, and store their name into a variable. It will then count from 1 to 100 and display on screen the following:[/font][font=Arial][/font][font=Arial]{User’s name}[/font][font=Arial] has 1 marbles in their bag [/font]
[font=Arial]{User’s name}[/font][font=Arial] has 2 marbles in their bag[/font]
[font=Arial]{User’s name}[/font][font=Arial] has 3 marbles in their bag[/font]
[font=Arial].[/font]
[font=Arial]to[/font]
[font=Arial].[/font]
[font=Arial]{User’s name}[/font][font=Arial] has 100 marbles in their bag[/font]
文章评论

共有 0 条评论