IF i SWITCH naredba
http://www.edusoft.math.rs/csharp/Verzija2005/grananje1.html
Sledećim algoritmom možemo predstaviti naredbu if...else:
Sintaksa if...else naredbe u C# je:
if(logički izraz)
{
/* ono što treba da se izvrši ako je logički izrau true */
}
else
{
/* ono što treba da se izvrši ako je logički izraz false */
}
https://www.tutorialspoint.com/csharp/if_else_statement_in_csharp.htm
switch(expression) {
case constant-expression :
statement(s);
break; /* optional */
case constant-expression :
statement(s);
break; /* optional */
/* you can have any number of case statements */
default : /* Optional */
statement(s);
}
https://www.tutorialspoint.com/csharp/switch_statement_in_csharp.htm
switch(expression) {
case constant-expression :
statement(s);
break; /* optional */
case constant-expression :
statement(s);
break; /* optional */ //prekida se program i nastavlja se sledeća naredba posle case naredbe
/* you can have any number of case statements */
default : /* Optional */
statement(s);
}
Logging in, please wait...
0 General Document comments
0 Sentence and Paragraph comments
0 Image and Video comments
New Conversation
New Conversation
General Document Comments 0
nice article and very useful thank so for <a href=“https://compitionpoint.com/2018/06/01/the-switch-statement/”>C# Switch
New Conversation
Hide Full Comment