Posted in Programming, School

C Language

C Language.. Not sure what ‘C’ mean but that’s what you’ll learn. I think it is a basic of basic for computer language.

Before you start programming, you will learn how it work. You will learn the concept of ALGORITHM; Pseudocode and Flowchart.
Below is example ALGORITHM for average people going to work

    Get out of bed
    Take off pajamas
    Clean asses
    Take a shower
    Get dresses
    Eat Breakfast
    Carpool to work

Almost similar thing is programming, well if you understand the concept of it, everything then will be a lot easier, like if you playing a game, everything will be easier if you understand the rule. In other words,


Flowchart is like Begin-Input-Process-Output-End and Pseudocode is like  what IF ELSE END

Then you will start programming.

There is several software that you can use like

My class use Borland C++, but Dev C++ is easier to download. I think both of it is freeware.

Anyway, you’ll learn how to make basic programming. In my case, I learn how to make unit conversion in C and several simple task. Following is the example startup question;

  1. Find the area for a triangle. Show the result for the area of the triangle.
  2. Count and show the result for the area of the square.
  3. Convert the value of feet to meter and show the result. One feet equivalent to 0.305 meter.

Of course, I have to answer it in C.

Now, let’s start programming!

This is an example source code to create a program that will converts distance in Miles to Kilometers.

   * Convert distance in miles to kilometers
   #include <stdio.h>
   #define KMS_PER_MILES 1.609
   int main(void) {
   float kms, miles;
   /* Get the distance in miles */
   printf("Enter the distance in miles>");
   scanf("%f", &miles);

/* Convert the distance to kilometres */
   kms = KMS_PER_MILES * miles;

/* Dislplay the distance in kilometres */
   printf("That equals %f kilometers", kms);

return 0;


Just copy and paste it, then Compile and Run it. Jang! Well, that’s the basic of it. Now, challenge your self by try it out by yourself! There is 3 an answered question above. It don’t really matter how you write it but what is the result is. Just ask for a question if you don’t get it.



He just an average normal guy until earlier Spring. Currently studying and strive to become a programmer, motivated by YandereDev. He always love anime, manga and games. His waifu is Yuigahama Yui and his Imouto is Illyasviel Von Einzbern.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s