Securing Knowledge.

Continuosity on learning is the most important thing to secure your knowledge.

Wednesday, September 15, 2004

Logical operators.

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!

So, kids out there... try to concentrate to your teacher when they try to teach you something... don’t be like me... hehehe :p
Enuff of motivational stuff... continue learning C... heh :p... today is about logical operators

#include stdio.h /* I’m not typing <> symbol cause its illegal in this blog*/

int main ( )
{
int num1, num2;

printf ("Masukkan 2 nombor, dan saya akan beritahu\n");
printf ("hubungan antara keduanya:");
scanf ("%d%d", &num1, &amp;num2);

if (num1 == num2)
printf ("%d adalah sama nilai dengan %d\n\n\n", num1, num2);

if (num1 != num2)
printf ("%d adalah tidak sama nilai dengan %d\n\n\n\n", num1, num2);

if (num1 <> num2)
printf ("%d adalah lebih besar dari %d\n\n\n", num1, num2);

return 0; /*indicate program ended successfully*/
}

continue… :p

carrotsusu, 8:20 PM

0 Comments:

Add a comment