Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="GET" />
- Wpisz 1 liczbe: <input type="text" name="a" value="" /><br />
- Wpisz 2 liczbe: <input type="text" name="b" value="" /><br />
- Wpisz 3 liczbe: <input type="text" name="c" value="" />
- <input type="submit" value="Wyślij" name="przycisk">
- </form>
- <?php
- if (isset($_GET['przycisk']));
- {
- $a=$_GET['a'];
- $b=$_GET['b'];
- $c=$_GET['c'];
- function funkcja1($a,$b,$c)
- {
- if($a<$b&&$a<$c){
- return $a;
- }
- else if($b<$a&&$b<$c){
- return $b;
- }
- else if($c<$a&&$c<$b){
- return $c;
- }
- }
- echo "<br>"."Najmniejsza liczba to: ".funkcja1($a,$b,$c);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement