Statement Kondisional (IF) dalam bahasa C sebenarnya tidak jauh berbeda dengan bahasa Pascal. Hanya saja untuk bahasa C, Statement IF tidak diblock menggunakan BEGIN dan END; tapi diblock dengan tanda { } "kurung kurawal". Jadi nantinya setiap proses yang akan dikerjakan pada Kondisi IF (Kondisi terpenuhi) harus ditulis diantara tanda kurung kurawal tersebut. *Jadi lebih mudah tho?* Nah secara gampangnya kaya gini syntaxnya!
If(surya=="GANTENG"){printf("Kamu Kok Jujur Banget Sih");} else {printf("Jangan Suka Berbohong Ya!!!");}
NB:
Arti dari syntax diatas adalah Jika variable surya bernilai GANTENG maka dilayar akan mencetak "Kamu Kok Jujur Banget Sih" tapi tanda tanda kutip. Dan kalo ternyata isi variable surya tidak bernilai (tidak sama dengan) GANTENG maka yang akan dicetak dilayar adalah "Jangan Suka Berbohong Ya!!!"
Nah kira-kira seperti itu syntax If itu seperti itu, Bila terjadi kepusingan, kebingunan jangan ragu-ragu tuk mencoba dan terus mencoba! Fa InsyAllah Anda akan menjadi lebih mahir dalam programming dibandingkan saya yang masih meraba-raba mau condong ke bahasa Programming apa :D. Belum tau nih kira-kira mau C++, Visual Basic, PHP, Java to??? bingung sobat soalnya masih semester III juga sih jadi masih ingin meraba-raba terus mana yang lebih bisa berkembang dengan baik!
Bila Ada Kesulitan atau ada pertanyaan terhadap Materi dari Kuliah Gratis silahkan Hubungi saya, Add ID YM saya radenmas_surya . Semoga dapat membantu Artikelnya Ya!
24 komentar
bertanya,
bagaimana jika pada syarat pengecekan,
if(syarat pengecekan) { bla bla bla }
saya memasukkkan operasi assignment?
menjadi seperti ini:
if(operasi assignment) { bla bla bla }
apakah program tetap bisa berjalan?
terima kasih... :)
Posted on 30 Desember 2009 pukul 21.05
hi...
mw tanya.bagaimna cara download software turbo c?
mhon dibalas.
saya ramandhan dari universitas komputer bandung.
jurusan manajemen informatika.
soalnya saya baru smester 2.jadi blum paham dngan bahasa c.
Posted on 10 Maret 2010 pukul 15.12
Hi there to every body, it's my first visit of this webpage; this website includes awesome and genuinely good information in support of readers.
my site Steinzeitdiät Erfahrungen
Posted on 22 Februari 2013 pukul 14.20
Quality articles is the main to invite the people to go to
see the website, that's what this web page is providing.
Here is my homepage; intensiv sprachkurs spanisch
Posted on 22 Februari 2013 pukul 15.22
I am truly thankful to the owner of this site who has shared this great piece of writing at here.
my webpage - einkaufsliste paleo
my page > steinzeit-diät rezepte
Posted on 22 Februari 2013 pukul 17.21
Excellent web site you've got here.. It's difficult to find high quality writing like yours nowadays.
I truly appreciate individuals like you! Take care!
!
Also visit my web blog :: steinzeit-diät
Posted on 22 Februari 2013 pukul 18.16
I'm amazed, I have to admit. Rarely do I encounter a blog that's
both equally educative and entertaining, and let me tell you, you have
hit the nail on the head. The issue is something
too few folks are speaking intelligently about.
Now i'm very happy that I came across this in my search for something regarding this.
My blog schnelle küche rezepte
Posted on 23 Februari 2013 pukul 12.42
Amazing! Its really remarkable piece of writing,
I have got much clear idea on the topic of from this article.
Here is my web blog :: ernährungspyramide download kostenlos
Posted on 23 Februari 2013 pukul 13.46
Hello! Someone in my Facebook group shared this website with us so I came to look
it over. I'm definitely loving the information. I'm book-marking and will
be tweeting this to my followers! Terrific blog and fantastic design.
My page - wordpress real estate themes
Also see my webpage :: quality wordpress themes
Posted on 24 Februari 2013 pukul 20.08
Thanks , I have recently been searching for information approximately this topic
for a while and yours is the best I have found out till now.
But, what concerning the bottom line? Are you certain concerning the supply?
My site Anwendungen
Posted on 25 Februari 2013 pukul 13.48
Pretty! This was an incredibly wonderful post.
Thanks for providing this information.
my weblog glutenfreie Lebensform
Posted on 26 Februari 2013 pukul 07.03
Very descriptive post, I enjoyed that bit.
Will there be a part 2?
Here is my web-site; Steinzeitdiät Erfahrungen
My website: Steinzeitdiät Rezepte
Posted on 26 Februari 2013 pukul 07.12
What's Happening i'm new to this, I stumbled upon this I have found It positively useful and it has helped me out loads.
I'm hoping to contribute & aid other customers like its helped me. Good job.
Look at my web-site; Steinzeit-Diät Rezepte
Posted on 26 Februari 2013 pukul 19.59
An outstanding share! I've just forwarded this onto a co-worker who has been conducting a little research on this. And he in fact bought me lunch because I found it for him... lol. So allow me to reword this.... Thanks for the meal!! But yeah, thanks for spending some time to talk about this topic here on your blog.
Feel free to visit my blog post glutenfreie Diät
Posted on 26 Februari 2013 pukul 20.09
Hi there to every body, it's my first pay a quick visit of this blog; this webpage carries amazing and truly excellent data for readers.
Also visit my homepage ... investing in renewable energy
Posted on 26 Februari 2013 pukul 20.46
I loved as much as you will receive carried out right here.
The sketch is attractive, your authored subject matter stylish.
nonetheless, you command get got an impatience over that you wish be delivering the following.
unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case
you shield this hike.
my webpage ... steuerberater verzeichnis
my web site: bilanzbuchhalter ihk hamburg
Posted on 28 Februari 2013 pukul 01.47
great points altogether, you simply won a new reader. What would you
recommend about your post that you just made some days in the past?
Any certain?
Visit my web page low carb fast foods
Posted on 1 Maret 2013 pukul 12.33
Hey there, You've done a great job. I'll certainly
digg it and personally recommend to my friends.
I am sure they'll be benefited from this site.
Feel free to visit my web-site versicherungen riester rente
Posted on 2 Maret 2013 pukul 04.40
I really like what you guys are usually up too. This sort of clever work and reporting!
Keep up the great works guys I've added you guys to our blogroll.
my page paleo diets
Posted on 2 Maret 2013 pukul 10.28
I think the admin of this website is really working hard for his web site, because here every information is quality based information.
my website - wordpress grundlagenkurs
Posted on 2 Maret 2013 pukul 11.06
Wow, awesome blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website is fantastic,
let alone the content!
Here is my site: schnell und gesund abnehmen
Posted on 2 Maret 2013 pukul 11.43
Hi, i think that i saw you visited my blog so
i came to “return the favor”.I am attempting to find things to enhance my website!
I suppose its ok to use a few of your ideas!!
Also visit my site :: diabetes diet plan
my web page :: Low Carb Diät Rezept
Posted on 2 Maret 2013 pukul 21.13
Hi there to all, how is everything, I think every one is getting more from this web site, and
your views are pleasant in favor of new visitors.
my weblog - paleodiät
Posted on 2 Maret 2013 pukul 21.39
I am actually delighted to glance at this web site posts which consists of plenty of helpful facts, thanks for
providing these kinds of statistics.
Also visit my homepage Steinzeit Diät Erfahrungen
Posted on 9 Maret 2013 pukul 20.38
Form Komentar
Tinggalkan Komentar sebagai Wujud Apreasiasi Anda!
Dilarang NYAMPAH disini!
Maafkan Jika Kuliah Gratis tidak membalas Komentar!