31203
Edfted by Foxit PDF Editor
Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n Onły.
KONSTRUKCJA IF-THEN-ELSE
# last modificution: 15.11.2008
# prosi o podanie liczby print "Podaj liczbę: " ;
# sczytuje podany tekst $ licz ba = <STDIN>;
if ($licxba < 10)
{print "liczba < 10\n" ;} elsif ($liczba > 10)
{print "liczba > 10\n" ;} else
{print "liczba = 10\n" ;}
# prosi o podanie nazwy uczelni print "Podaj nazwę uczelni:
# sczytuje podany tekst $nazwa = <STDIN> ; chomp ($nazwa);
if ($nazwa ne "Uniwersytet przyrodniczy") {print "zle\n" ; } else
{print "dobrze\n" ; }
Wyszukiwarka
Podobne podstrony:
Edited by Foxit PDF Editor Ostatn Copyright (c) by Foxit Software Company, 2003 - 2009 For EvaluattoEdited by Foxit PDF Editor Analizy genJ Copyright (c) by Foxit Software Company, 2003 - 2009 For EvaEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company., 2003 - 2009 For Evaluation OnlyEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatłon Onły.Edited by Foxlt PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluation Only.Edited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>nWSTĘP Edited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For EvaluationEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>nEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Fo)dt PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluatk>n OnEdited by Foxit PDF Editor Copyright (c) by Foxit Software Company, 2003 - 2009 For Evaluation Only.więcej podobnych podstron