NowComment
2-Pane Combined
Comments:
Full Summaries Sorted

sintaksa-if-nredbe-u-c

IF i SWITCH naredba

http://www.edusoft.math.rs/csharp/Verzija2005/grananje1.html

Sledećim algoritmom možemo predstaviti naredbu if...else:

C# if...else statement

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

Sintaksa switch naredbe:

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);

}

DMU Timestamp: January 25, 2018 19:54





Image
0 comments, 0 areas
add area
add comment
change display
Video
add comment

Quickstart: Commenting and Sharing

How to Comment
  • Click icons on the left to see existing comments.
  • Desktop/Laptop: double-click any text, highlight a section of an image, or add a comment while a video is playing to start a new conversation.
    Tablet/Phone: single click then click on the "Start One" link (look right or below).
  • Click "Reply" on a comment to join the conversation.
How to Share Documents
  1. "Upload" a new document.
  2. "Invite" others to it.

Logging in, please wait... Blue_on_grey_spinner