<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8319376</id><updated>2011-08-07T01:29:48.377-07:00</updated><title type='text'>Securing Knowledge.</title><subtitle type='html'>Continuosity on learning is the most important thing to secure your knowledge.
</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8319376.post-109530825839288377</id><published>2004-09-15T23:59:00.000-07:00</published><updated>2004-09-16T01:21:31.986-07:00</updated><title type='text'>Function in C</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Functions allow the programmer to modularize a program. The format of function definition is :&lt;br /&gt;&lt;br /&gt;Return-value-type function-name (parameter-list)&lt;br /&gt;{&lt;br /&gt;declarations…..&lt;br /&gt;&lt;br /&gt;statements…..&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*Function*/&lt;br /&gt;/*Example -- A programmer-defined square function*/&lt;br /&gt;/*Fig 5.13 -- page 147*/&lt;br /&gt;&lt;br /&gt;#include stdio.h /* I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int square (int); /*Funtion prototype*/&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int x;&lt;br /&gt;&lt;br /&gt;for ( x = 1; x &lt;= 10; x++)&lt;br /&gt;printf ("%d ", square (x)); /*calling a function*/&lt;br /&gt;printf ("\n");&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int square (int y) /*Function*/&lt;br /&gt;{&lt;br /&gt;return y*y;&lt;br /&gt;} &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109530825839288377?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109530825839288377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109530825839288377' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530825839288377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530825839288377'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/function-in-c.html' title='Function in C'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109530684317474861</id><published>2004-09-15T23:49:00.000-07:00</published><updated>2004-09-16T01:17:45.596-07:00</updated><title type='text'>Examples -- repetition structure</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;strong&gt;Example – “do-while” structure&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;#include stdio.h /*I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ( )&lt;br /&gt;{&lt;br /&gt;int counter = 1;&lt;br /&gt;&lt;br /&gt;do {&lt;br /&gt;&lt;br /&gt;printf ("\n\n%d",counter);&lt;br /&gt;&lt;br /&gt;} while ( counter++ &lt;= 10);&lt;br /&gt;&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;strong&gt;Example – “for” structure&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;#include stdio.h /*I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int x, y, jumlah = 0;&lt;br /&gt;&lt;br /&gt;for ( x = 1; x &lt;= 6; x++)&lt;br /&gt;{&lt;br /&gt;scanf ("%d\n", &amp;y);&lt;br /&gt;jumlah = jumlah + y;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;printf ("\nJumlah nombor yang dimasukkan ialah: : %d\n", jumlah); } &lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;strong&gt;Example – “for” structure with “break” statement&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;#include stdio.h /*I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int x;&lt;br /&gt;&lt;br /&gt;for ( x = 1; x &lt;=10; x++ )&lt;br /&gt;{&lt;br /&gt;if ( x == 5)&lt;br /&gt;break; /*Break out if x adalah sama dengan 5*/&lt;br /&gt;printf ("%d", x);&lt;br /&gt;}&lt;br /&gt;printf ("\n Broke out of loop at x == %d\n", x);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;strong&gt;Example – “for” structure with “continue” statement&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;#include stdio.h /*I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int x;&lt;br /&gt;&lt;br /&gt;for ( x = 1; x &lt;= 10; x++)&lt;br /&gt;{&lt;br /&gt;if ( x == 5 )&lt;br /&gt;continue;&lt;br /&gt;printf (" %d ", x);&lt;br /&gt;}&lt;br /&gt;printf ("\nUsed continue to skip the printing value 5\n");&lt;br /&gt;return 0;&lt;br /&gt;} &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109530684317474861?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109530684317474861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109530684317474861' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530684317474861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530684317474861'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/examples-repetition-structure.html' title='Examples -- repetition structure'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109530561020630313</id><published>2004-09-15T22:30:00.000-07:00</published><updated>2004-09-16T01:11:23.813-07:00</updated><title type='text'>C program control - for, switch, while, do-while.</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Consist of “for” repetition structure, “switch” multiple selection structure, and “do/while” repetition structure.&lt;br /&gt;&lt;br /&gt;Essentials of repetitions&lt;br /&gt;&lt;br /&gt;Most program involve repetition or looping. A loop is a group of instructions the computer executes repeatedly while some loop continuation condition remains true. Two means of repetition are 1. counter-controlled repetition and 2. Sentinel-controlled repetition.&lt;br /&gt;&lt;br /&gt;Counter controlled repetition is sometimes called definite repetition because we know in advance exactly how many times the loop will be executed. And otherwise in sentinel-controlled repetition – we don’t know in advance how many time the loop will be executed. Counter-controlled repetition – control variable is used to count the number of repetitions. Sentinel values used to control repetition when 1. the precide number of repetitions is not known in advance, and 2. the loop includes statements that obtain data each time the loop is performed.&lt;br /&gt;&lt;br /&gt;Example of switch multiple-selection structure&lt;br /&gt;&lt;br /&gt;#include stdio.h /* I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int grade;&lt;br /&gt;int aCount = 0, bCount = 0, cCount = 0, dCount = 0, eCount = 0, fCount = 0;&lt;br /&gt;&lt;br /&gt;printf ("Enter the letter grades.\n");&lt;br /&gt;printf ("Enter EOF character to end input.\n");&lt;br /&gt;&lt;br /&gt;while (( grade = getchar( )) != EOF)&lt;br /&gt;{&lt;br /&gt;switch (grade)&lt;br /&gt;{&lt;br /&gt;case 'A': case 'a':&lt;br /&gt;++aCount;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case 'B': case 'b':&lt;br /&gt;++bCount;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case 'C': case 'c':&lt;br /&gt;++cCount;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case 'D': case 'd':&lt;br /&gt;++dCount;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case 'E': case 'e':&lt;br /&gt;++eCount;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case 'F': case 'f':&lt;br /&gt;++fCount;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case '\n': case ' ':&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;default:&lt;br /&gt;printf ("Incorrect letter grade entered.");&lt;br /&gt;printf ("Enter a new grade.\n");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;printf ("\nTotal for each letter grade are:\n");&lt;br /&gt;printf ("A: %d\n", aCount);&lt;br /&gt;printf ("B: %d\n", bCount);&lt;br /&gt;printf ("C: %d\n", cCount);&lt;br /&gt;printf ("D: %d\n", dCount);&lt;br /&gt;printf ("E: %d\n", eCount);&lt;br /&gt;printf ("F: %d\n", fCount);&lt;br /&gt;&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;EOF character in Window$ is Ctrl-Z or Ctrl-C. In Unix/Linux environment is Ctrl-C (correct me if I’m wrong…) &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109530561020630313?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109530561020630313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109530561020630313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530561020630313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530561020630313'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/c-program-control-for-switch-while-do.html' title='C program control - for, switch, while, do-while.'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109530534650652472</id><published>2004-09-15T21:27:00.000-07:00</published><updated>2004-09-16T01:02:11.610-07:00</updated><title type='text'>The if/else selection structure</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;I think there’s a better way to write the code below. Sorry, I forgot where’s the question is…&lt;br /&gt;&lt;br /&gt;#include stdio.h /* I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int x, y, z, sum, avg, product;&lt;br /&gt;&lt;br /&gt;printf ("Masukkan 3 integer : ");&lt;br /&gt;scanf ("%d%d%d", &amp;x, &amp;amp;amp;y, &amp;z);&lt;br /&gt;&lt;br /&gt;sum = x+y+z;&lt;br /&gt;printf ("Sum is : %d\n", sum);&lt;br /&gt;&lt;br /&gt;avg = sum/3;&lt;br /&gt;printf ("Avg is : %d\n", avg);&lt;br /&gt;&lt;br /&gt;product = x*y*z;&lt;br /&gt;printf ("Product is : %d\n", product);&lt;br /&gt;&lt;br /&gt;if (x &gt; y)&lt;br /&gt;if (x &gt; z)&lt;br /&gt;printf ("Largest : %d\n", x);&lt;br /&gt;if (y &gt; x)&lt;br /&gt;if (y &gt; z)&lt;br /&gt;printf ("Largest : %d\n", y);&lt;br /&gt;if (z &gt; x)&lt;br /&gt;if (z &gt; y)&lt;br /&gt;printf ("Largest : %d\n", z);&lt;br /&gt;if (x &lt;&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if (x &lt;&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;printf ("Smallest : %d\n", x); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if (y &lt;&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if (y &lt;&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;printf ("Smallest: %d\n", y); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if (z &lt;&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if (z &lt;&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;printf ("Smallest : %d\n", z); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;return 0; &lt;/span&gt;&lt;br /&gt;&lt;span face="trebuchet ms"&gt;} &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109530534650652472?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109530534650652472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109530534650652472' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530534650652472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530534650652472'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/ifelse-selection-structure.html' title='The if/else selection structure'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109530747749721716</id><published>2004-09-15T21:02:00.000-07:00</published><updated>2004-09-16T01:00:36.463-07:00</updated><title type='text'>Exercise – repetitions (looping).</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Question : Question -- Write a program that calculates and prints the average of several integers. Assume the last value read with scanf is the sentinel 9999. A typical input sequence might be :&lt;br /&gt;&lt;br /&gt;(10 8 11 7 9 9999)&lt;br /&gt;&lt;br /&gt;I succeed in answering it. Congrates carrotsusu!!! hehehe :p&lt;br /&gt;&lt;br /&gt;#include stdio.h /* I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;#include math.h /* I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int x, y, jumlah, purata;&lt;br /&gt;&lt;br /&gt;for ( x = 0; x &lt;= 6; x++ ) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;scanf ("%d", &amp;y); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if ( y == 9999) break; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;jumlah = jumlah + y; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;/*printf ("%d", x);*/ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;} &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;purata = jumlah / x; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;printf ("\npurata keseluruhan nombor yang dimasukkan ialah: %d\n", purata); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;return 0; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;} &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109530747749721716?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109530747749721716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109530747749721716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530747749721716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530747749721716'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/exercise-repetitions-looping.html' title='Exercise – repetitions (looping).'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109530501040898614</id><published>2004-09-15T20:20:00.000-07:00</published><updated>2004-09-16T00:58:39.673-07:00</updated><title type='text'>Logical operators.</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;We will appreciate our knowledege when we try to gain it back alone, instead of learn-back from the guru’s. This sentence came into my mind when i strugling to understand the word in a book – in learn-back C programming. I feel like i’m loosing something when i realized that i’m not in full concentration when lecturers giving a lecture about C programming 3 years ago... hemph... what a waste of time!&lt;br /&gt;&lt;br /&gt;So, kids out there... try to concentrate to your teacher when they try to teach you something... don’t be like me... hehehe :p&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;span style="font-family:trebuchet ms;"&gt;Enuff of motivational stuff... continue learning C... heh :p... today is about logical operators&lt;br /&gt;&lt;br /&gt;#include stdio.h /* I’m not typing &lt;&gt; symbol cause its illegal in this blog*/&lt;br /&gt;&lt;br /&gt;int main ( )&lt;br /&gt;{&lt;br /&gt;int num1, num2;&lt;br /&gt;&lt;br /&gt;printf ("Masukkan 2 nombor, dan saya akan beritahu\n");&lt;br /&gt;printf ("hubungan antara keduanya:");&lt;br /&gt;scanf ("%d%d", &amp;num1, &amp;amp;amp;num2);&lt;br /&gt;&lt;br /&gt;if (num1 == num2)&lt;br /&gt;printf ("%d adalah sama nilai dengan %d\n\n\n", num1, num2);&lt;br /&gt;&lt;br /&gt;if (num1 != num2)&lt;br /&gt;printf ("%d adalah tidak sama nilai dengan %d\n\n\n\n", num1, num2);&lt;br /&gt;&lt;br /&gt;if (num1 &lt;&gt; num2)&lt;br /&gt;printf ("%d adalah lebih besar dari %d\n\n\n", num1, num2);&lt;br /&gt;&lt;br /&gt;return 0; /*indicate program ended successfully*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;continue… :p&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109530501040898614?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109530501040898614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109530501040898614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530501040898614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109530501040898614'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/logical-operators_15.html' title='Logical operators.'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109514245927728526</id><published>2004-09-13T22:00:00.000-07:00</published><updated>2004-09-16T00:57:21.820-07:00</updated><title type='text'>Code for print and scan for user input</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Well, enough for helloworld stuff, go for the next learn-back code... hehe :p. It's for how to print and scan for user input.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;span style="font-family:trebuchet ms;"&gt;#include stdio.h /* i cannot put the &lt;&gt; symbol arounf stdio.h (it's illegal in this blog, hehe... :p)*/&lt;stdio.h&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt;int num1, num2, jumlah;&lt;br /&gt;printf ("Masukkan nombor pertama\n");&lt;br /&gt;scanf ("%d", &amp;num1);&lt;br /&gt;printf ("Masukkan nombor kedua\n");&lt;br /&gt;scanf ("%d", &amp;num2);&lt;br /&gt;jumlah = num1 + num2;&lt;br /&gt;printf ("Jumlah dua nombor tadi ialah %d \n", jumlah);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;continue... :) &lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109514245927728526?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109514245927728526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109514245927728526' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109514245927728526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109514245927728526'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/code-for-print-and-scan-for-user-input.html' title='Code for print and scan for user input'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109514119418476813</id><published>2004-09-13T21:00:00.000-07:00</published><updated>2004-09-16T00:53:16.203-07:00</updated><title type='text'>C compiler &amp; setup -- My first step</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;I use DJGPP as the compiler for my C's code. DJGPP compiler can be found &lt;/span&gt;&lt;a href="http://www.delorie.com/djgpp/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;. The tutorial about DJGPP can be found &lt;/span&gt;&lt;a href="http://www.delorie.com/djgpp/doc/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;.&lt;br /&gt;&lt;br /&gt;I use DJGPP compiler because i'm quite comfortable with it. There's a lot of C compiler. You all can search it at Google... hehehe :p&lt;br /&gt;&lt;br /&gt;So, continue to my first learn-back code. Its anybody-know code : the hello world code...&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;span style="font-family:trebuchet ms;"&gt;#include stdio.h /* i cannot put the &lt;&gt; symbol arounf stdio.h (it's illegal in this blog, hehe... :p)*/&lt;stdio.h&gt;&lt;br /&gt;int main (void)&lt;br /&gt;{&lt;br /&gt;printf ("hai, mari start balik coding C\n");&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109514119418476813?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109514119418476813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109514119418476813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109514119418476813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109514119418476813'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/c-compiler-setup-my-first-step.html' title='C compiler &amp; setup -- My first step'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8319376.post-109513979526287360</id><published>2004-09-13T20:00:00.000-07:00</published><updated>2004-09-16T00:43:27.130-07:00</updated><title type='text'>Author's intro &amp; Blog purpose</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Assalamualaikum and good day,&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I'm sorry if my English is bad. I use this blog as a tool to improve my English... :p&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;A little bit of me, my name is Zuraidy Adnan (carrotsusu, laicibuah, onjoy). I live at Tanjong Malim, Perak, Malaysia. And I'm totally Malaysian, and I'm proud to be Malaysian. Age 25, male, single and available. I like programming. My ambition is to be a good programmer. The reason i'm creating this blog is to keep track to what i've learn about programming. The first programming language that i've learn while i'm in university is C programming. 2 weeks ago, after 4 years left the university, i feel that if i want to secure my programming skills and knowledge, i must keep learning the code. I felt like i start to forgot almost all about programming. So i try to catch my knowledge back. I feel that continuosity is the most important thing to secure our knowledge.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;blockquote&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:trebuchet ms;"&gt;My working experience :&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;2002 – Facilitator for lab TA1013 (UUM) – Java Awalan (6 month contract).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;2002 – Facilitator for lab TJ3133 (UUM) – Keselamatan Sistem dan Rangkaian (6 month contract).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;2003 – Facilitator for lab TA2043 (UUM) – Sistem Pengoperasian (Unix) (6 month contract).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;2003 – Bengkel Celik Komputer Kampung Tanjung, Mukim Tunjang, Jitra (temporary facilitator).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;2003 – Bengkel Celik Komputer Kampung Imam, Mukim Seputeh, Jitra (temporary facilitator).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;13-16th May 2004 – Bengkel Celik Komputer Kampung Pulau Nyior, Jitra (temporary facilitator)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;20-23rd May 2004 – Bengkel Celik Komputer Kampung Pdg. Gelanggang, Sanglang (temporary facilitator).&lt;br /&gt;June – September 2004 – Reasearch Assistant, Jabatan Biologi, Fakulti Sains Teknologi, UPSI. (4 month contract).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Published paper :&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;2002 – TEMPO2002 proceeding, Universiti Utara Malaysia.&lt;br /&gt;Paper, “Issues In Unfairness Problem Between TCP and UDP in Gigabit Ethernet Network”.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;22 December 2003 - ICT Malaysia 2003 proceeding, ITM Arau, Perlis.&lt;br /&gt;Paper, “Kajian Perbandingan antara Protokol RTSP dan MMS terhadap Prestasi Komputer Pelayan Proses Strim”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;14 August 2004 – MscIT Proceeding Papers 2004.&lt;br /&gt;Paper, “Kesan Penggunaan Pelayan Strim Yang Berbeza Kepada Kualiti Output Dan Prestasi Komputer Pelayan”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;17 – 20 September 2004 – Konvensyen PTPM 2004.&lt;br /&gt;Paper, “Hubungan Mangsa-Pemangsa Dalam Teknik Kawalan Biologi – Model Empirikal Dan Simulasi”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Next paper “Model Simulasi Kawalan Biologi dalam Ekosistem Ladang Kelapa Sawit”&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Outdoor Activities :&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Rugby player for Perwaja College in Sukan antara Kolej (SUKOL) - 1999, dan 2000.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Volleyball player for Perwaja College in SUKOL UUM - 1999.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Volleyball player for Sekolah Teknologi Maklumat, UUM - 2001&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Bowling player for Perwaja College in SUKOL UUM- 1998, 1999, 2000.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Bowling player for UUM in MASUM 2003&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8319376-109513979526287360?l=carrotsusu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carrotsusu.blogspot.com/feeds/109513979526287360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8319376&amp;postID=109513979526287360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109513979526287360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8319376/posts/default/109513979526287360'/><link rel='alternate' type='text/html' href='http://carrotsusu.blogspot.com/2004/09/authors-intro-blog-purpose.html' title='Author&apos;s intro &amp; Blog purpose'/><author><name>carrotsusu</name><uri>http://www.blogger.com/profile/10006250370984159631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
