Home > OS >  Help the shell programming have a big help
Help the shell programming have a big help

Time:09-17

Write a shell script to solve a yuan quadratic equation to solve the problem, type a, b, c three parameters, based on the input value calculated judgement equation root, according to the calculation results on the screen output: a root, two root or root,
Write a shell script, enter the three sides of the triangle, and according to the input values of the three side output whether the three lengths of a triangle,
5, write a shell script to implement the following functions:
Determine if the first argument as the name of the file exists, if the file does not exist in the screen output the file does not exist, if the file exists, the screen shows the type of the file

CodePudding user response:

Brother, soft measurement?

CodePudding user response:

A yuan quadratic equation root problem junior high school knowledge has been forgotten, the relation between ABC
Anyway, should give baidu literally can find
The second triangle side problem pupils well,
If (Max (a, b, c) & gt;=a + b + c - Max (a, b, c))
Echo "is not a triangle"
The else
Triangle "echo"
Use the find/command to check the last question, you can then unavailability limit first, and d is a directory, judging - is a normal file,
  • Related