Wikipedia

Hasil penelusuran

Selasa, 29 September 2015

Decision / Branch in C Programming

Hello , today im going to share about Decision making / branch in C Programming
In my Journey of learning C, what i used to make decision / branch is :
- IF - Else
- Switch - Case

If -Else :

heres a Flowchart of decision making to help you understand.
 



now lets move to the Code. im using Code::Blocks, Download it for free, see the tutorial in my last week's post.
this Tutorial is showing about giving a Grade A/B/C to According to your Score



Switch-Case  :

 

 and for the Code :

And this is what Happened if i dont use break;
 





Hope This pst will help.
Peace!











Tidak ada komentar:

Posting Komentar