<?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:blogger='http://schemas.google.com/blogger/2008' 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-7194050342190204916</id><updated>2024-10-07T13:47:20.687+07:00</updated><category term="CMD"/><category term="Computer"/><category term="Computer Security"/><category term="Programming"/><category term="C Programming"/><category term="Computer Protection"/><category term="Hacking"/><category term="Virus"/><category term="Antivirus"/><category term="Downloads"/><category term="Flash"/><category term="Malware"/><category term="Phishing"/><category term="Spyware"/><category term="Windows Batch Programming"/><category term="HTML"/><category term="Harddisk Optimization"/><category term="JavaScript"/><category term="MiniLyrics"/><category term="Music"/><category term="Web Editing."/><category term="Windows Media Player"/><category term="job opportunity"/><title type='text'>Cyber Frost&#39;s Blog</title><subtitle type='html'>In this blog, I give tutorials about programming in many popular programming languages, starting from the basics to the advanced level.&#xa;Also, I discuss many problems that may be encountered while using a computer.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-4291360867601400684</id><published>2014-03-01T11:14:00.000+07:00</published><updated>2014-03-01T11:16:40.314+07:00</updated><title type='text'>Java - Introduction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Good day to every reader,&lt;br /&gt;
&lt;br /&gt;
Today I am going to introduce you to a new programming language namely &quot;Java&quot;. It was first developed by Sun Microsystems, which was acquired by Oracle in 2010. Java is vastly used all around the world by most programmers, especially by those who seek portability and security in programming.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
JAVA AND OOP&lt;/h4&gt;
Java is an OOP (Object Oriented Programming) language, meaning it concerns more on &lt;span style=&quot;color: red;&quot;&gt;objects&lt;/span&gt; and their &lt;span style=&quot;color: red;&quot;&gt;attributes&lt;/span&gt; as well their &lt;span style=&quot;color: red;&quot;&gt;methods&lt;/span&gt; than on the procedure of how the program runs — like in the C Programming Language which is also known as the procedural programming language.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
JAVA vs. C&lt;/h4&gt;
Despite the differences between the two languages, knowledge in C Programming is preferably required because the syntax of a Java code is pretty much similar to that of a C code. Some new keywords I will explain today are: &lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;Attribute&lt;/span&gt;, and &lt;span style=&quot;color: red;&quot;&gt;Method&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
DEFINITIONS&lt;/h4&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Classes and Objects&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I will explain these two terms with an illustration:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Let&#39;s say you have a &lt;b&gt;Printer&lt;/b&gt;. We all know that there are many manufacturers of printers. There are Canon printers, HP printers, Xerox printers, and so on.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
When you talk about a &lt;b&gt;Printer&lt;/b&gt;,&lt;b&gt; &lt;/b&gt;you are actually talking about printers in general, which is abstract.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
But when you talk about a Canon Laserjet Printer, you talk about a real thing, something that exists.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In this case, &lt;b&gt;Printer &lt;/b&gt;is a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt; and a Canon printer is an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt; created based on the &lt;b&gt;Printer Class.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;To sum up, a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt; is a blueprint of an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt;, and an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt; is a physical representation of a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Attributes&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
An &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt; (or a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;, which is actually the same, because an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt; is created based on a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;) has certain attributes.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Examples:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A box has width, height, depth, surface area, and volume.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A phone has price, manufacturer, type, dimensions, weight, etc.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A car has maximum speed, price, manufacturer, type, color, number of doors, number of tires, etc.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Basically, &lt;span style=&quot;color: red;&quot;&gt;Attributes&lt;/span&gt; are what make up an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt; (or a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;). You can think of them as the ingredients of a recipe — The recipe itself is a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;, while the food cooked based on it is an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Note:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The &lt;span style=&quot;color: red;&quot;&gt;Attributes&lt;/span&gt; of a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt; (or an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt;) must be declared as &lt;span style=&quot;color: cyan;&quot;&gt;private&lt;/span&gt;, so it cannot be accessed other than through its &lt;span style=&quot;color: red;&quot;&gt;Methods&lt;/span&gt;. This will be explained in the next post.&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Methods&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Methods are (or should be) the only way you access the &lt;span style=&quot;color: red;&quot;&gt;Attribute&lt;/span&gt; of a &lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt; (or an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt;).&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
If not, you can imagine if someone has access to your program, he can easily set the attributes&#39; values to those he wants.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Let&#39;s assume that we have an &lt;span style=&quot;color: red;&quot;&gt;Object&lt;/span&gt;, an ATM.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
We all know we can withdraw money using the ATM, provided that there is enough money in our account.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
There will be &lt;span style=&quot;color: red;&quot;&gt;Methods&lt;/span&gt;, supposedly withdrawMoney(), setUser(), and getBalance().&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
First, an ATM user must insert the card, containing their user info into the ATM.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
As it is inserted, the ATM calls its &lt;span style=&quot;color: red;&quot;&gt;Method&lt;/span&gt;, setUser(), to set the current user to the card holder.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Next, it will call the next &lt;span style=&quot;color: red;&quot;&gt;Method&lt;/span&gt; which is to getBalance() of the account number which is already provided by the card (obtained using the setUser() &lt;span style=&quot;color: red;&quot;&gt;Method&lt;/span&gt;).&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Finally, the user will try to withdraw the money by inputting the amount of money he wants to withdraw. The withdrawMoney() &lt;span style=&quot;color: red;&quot;&gt;Method&lt;/span&gt; will then be called to check whether the amount requested is available in the account. If such amount (or more) is available, the ATM will withdraw the requested amount of money, end the transaction, and eject the card.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
As you can see above, there is no way for the user to set the balance of the account because there is no such &lt;span style=&quot;color: red;&quot;&gt;Method&lt;/span&gt; provided.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
As this is an introductory post, I will stop right here and continue to expose more about Java and the OOP concept in the next posts.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Happy Coding,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/4291360867601400684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2014/03/java-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/4291360867601400684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/4291360867601400684'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2014/03/java-introduction.html' title='Java - Introduction'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-3001156942689914931</id><published>2013-11-20T10:52:00.000+07:00</published><updated>2013-11-20T10:52:20.706+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="CMD"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>C Functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today, I am going to discuss about &quot;Functions&quot;.&lt;br /&gt;
&lt;br /&gt;
Functions are a group of statements that is created to perform a special task and returns a value as its result.&lt;br /&gt;
Example: The main() function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;From the above definition, you can get:&lt;br /&gt;
&lt;br /&gt;-Function is a group of statements.&lt;br /&gt;
&lt;br /&gt;
-Function performs special tasks.&lt;br /&gt;
&amp;nbsp;Example: The factorial function is used to calculate the factorial of a given number. &lt;br /&gt;
&lt;br /&gt;
-Function returns a value.&lt;br /&gt;
&amp;nbsp;Please note this: Functions return one value only no matter how many arguments it has as its input(s).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, how do we create a function?&lt;br /&gt;
&lt;br /&gt;
Use this syntax:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: cyan;&quot;&gt;return_type&lt;/span&gt; function_name (&lt;span style=&quot;color: cyan;&quot;&gt;data_type&lt;/span&gt; var1,&lt;span style=&quot;color: cyan;&quot;&gt; data_type&lt;/span&gt; var2, ....){&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: lime;&quot;&gt;//statement1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp;//statement2;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp;//...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;return&lt;/span&gt; data&lt;br /&gt;
} &lt;/blockquote&gt;
&lt;br /&gt;
Let&#39;s go straight to creating our own function.&lt;br /&gt;I would like to show you how to create a factorial function by using iteration rather than recursion.&lt;br /&gt;
&lt;br /&gt;
First of all, I need to explain what factorial is and how it works.&lt;br /&gt;
&lt;br /&gt;
n factorial, denoted by n!, is the factorial of n which equals to &lt;span style=&quot;color: red;&quot;&gt;n * (n-1) * (n-2) * ... * 3 * 2 * 1&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
So, 5! = 5*4*3*2*1 = 120 and 7! = 7*6*5*4*3*2*1 = 5040.&lt;br /&gt;
&lt;br /&gt;
If you analyze it thoroughly, you will see that 5! can also be 1*2*3*4*5 and it still equals to 120. The same thing works for 7! too.&lt;br /&gt;
&lt;br /&gt;
Therefore, we can conclude that:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;n! = 1 * 2 * 3 *.... * (n-2) * (n-1) * n&lt;/span&gt;&lt;/blockquote&gt;
We have learned about the &lt;a href=&quot;http://cyberfrost-computing.blogspot.com/2013/11/the-for-loop-in-c.html&quot; target=&quot;_blank&quot;&gt;For Loop&lt;/a&gt; before, now we are going to put it into use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;How are we going to calculate the factorial of n?&lt;br /&gt;
&lt;br /&gt;It&#39;s simple, all we have to do is loop from 1 to n, multiply each values respectively, store it in a variable, then return the result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The code would be like this:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; fact(&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; x){&lt;br /&gt;&amp;nbsp;&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; i=1;&lt;br /&gt;&amp;nbsp;&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; result=1;&lt;br /&gt;&amp;nbsp;for(i=1; i&amp;lt;=x; i++){&lt;br /&gt;&amp;nbsp;&amp;nbsp; result = result * i; &lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;return&lt;/span&gt; result; &lt;br /&gt;}&lt;/blockquote&gt;
&lt;br /&gt;
Explanation:&lt;br /&gt;
Integer x is the input, Integer i is the loop counter, Integer result is the value that will be returned as the result of the operation performed.&lt;br /&gt;
&lt;br /&gt;
Let me simulate the flow of this program.&lt;br /&gt;
&lt;br /&gt;
Let the input (x) be 5. The program will loop for 5 times. &lt;br /&gt;
&lt;br /&gt;
Loop 1 :&lt;br /&gt;
i = 1, result = 1*1 = 1&lt;br /&gt;
&lt;br /&gt;
Loop 2 :&lt;br /&gt;
i = 2, result = 1*2 = 2&lt;br /&gt;
&lt;br /&gt;
Loop 3 :&lt;br /&gt;
i = 3, result = 2*3 = 6&lt;br /&gt;
&lt;br /&gt;
Loop 4 :&lt;br /&gt;
i = 4, result = 6*4 = 24&lt;br /&gt;
&lt;br /&gt;
Loop 5 :&lt;br /&gt;
i&amp;nbsp; = 5, result = 24 * 5 = 120 (answer) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming you want to display your result, you would want to create your main function. The whole program will look like this :&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #93c47d;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; fact(&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; x){&lt;br /&gt;&lt;span style=&quot;color: cyan;&quot;&gt;&amp;nbsp;int&lt;/span&gt; i = 1;&lt;br /&gt;&amp;nbsp;&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; result = 1;&lt;br /&gt;&amp;nbsp;for(i = 1; i &amp;lt;= x; i++){&lt;br /&gt;&amp;nbsp;&amp;nbsp; result = result * i;&amp;nbsp; &lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;return&lt;/span&gt; result; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; main(){&lt;br /&gt;&amp;nbsp; printf(&quot;%d\n&quot;,fact(5));&amp;nbsp; &lt;br /&gt;&amp;nbsp; system(&lt;span style=&quot;color: #e06666;&quot;&gt;&quot;pause&quot;&lt;/span&gt;);&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;return&lt;/span&gt; 0;&amp;nbsp; &lt;br /&gt;}&lt;/blockquote&gt;
&lt;br /&gt;
Description of the code: &lt;br /&gt;
The main program prints the factorial of 5. If you want it to print the factorial of different number, you can do so by changing the 5 to another number.&lt;br /&gt;
&lt;br /&gt;
Please note that he result variable is an Integer and an Integer has its limit. It will not be able to calculate the factorial of large numbers. If you wish to calculate the factorial of large numbers, you might want to change the &lt;span style=&quot;color: cyan;&quot;&gt;return_type&lt;/span&gt; of the function.&lt;br /&gt;
&lt;br /&gt;
Anyway, here&#39;s a preview of the program we have just created:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRk-Zi7bjykHWP2MFhfNHtR8FnwqxbTT5HPCWTnhH9mHZCMN-lA5LCTfUUE_P-4vBGCWbObqQFZQc-AuI9gDe9rOfVWjbHY7B9leM6F4ytPiKAgok68I3MjJuz8hpkKvzY11cRMIFl1eK0/s1600/fact.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRk-Zi7bjykHWP2MFhfNHtR8FnwqxbTT5HPCWTnhH9mHZCMN-lA5LCTfUUE_P-4vBGCWbObqQFZQc-AuI9gDe9rOfVWjbHY7B9leM6F4ytPiKAgok68I3MjJuz8hpkKvzY11cRMIFl1eK0/s400/fact.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;Cyber Frost&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/3001156942689914931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/11/c-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/3001156942689914931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/3001156942689914931'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/11/c-functions.html' title='C Functions'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRk-Zi7bjykHWP2MFhfNHtR8FnwqxbTT5HPCWTnhH9mHZCMN-lA5LCTfUUE_P-4vBGCWbObqQFZQc-AuI9gDe9rOfVWjbHY7B9leM6F4ytPiKAgok68I3MjJuz8hpkKvzY11cRMIFl1eK0/s72-c/fact.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-9217293276342958663</id><published>2013-11-16T20:29:00.001+07:00</published><updated>2013-11-16T20:31:47.485+07:00</updated><title type='text'>Binary Conversions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello Coders.&lt;br /&gt;
&lt;br /&gt;
Today I would like to discuss about binary digits.&lt;br /&gt;
If you don&#39;t know what a binary digit is, here is a simple explanation:&lt;br /&gt;
&lt;br /&gt;
A Binary Digit is a digit of number whose value is either 0 or 1.&lt;br /&gt;
&lt;br /&gt;
In computer, the 0s and 1s indicate electrical signals.&lt;br /&gt;
1 indicates ON, 0 indicates OFF.&lt;br /&gt;
&lt;br /&gt;
As we have learned in the previous post about data types,&amp;nbsp; a character has a size of 1 byte.&lt;br /&gt;
1 byte equals to 8 bits.&lt;br /&gt;
&lt;br /&gt;
Basically a set of binary digits make up 1 byte, or 8 bits.&lt;br /&gt;
&lt;br /&gt;
Examples: 1111 1111, 0000 1010, 1010 1110, etc.&lt;br /&gt;
&lt;br /&gt;
What can we do with those 1s and 0s?&lt;br /&gt;
&lt;br /&gt;
You can convert them to decimals, octals, and hexadecimals.&lt;br /&gt;
Also, you can use the AND, OR, and XOR operators to perform special conversions.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Converting Binary to Decimal&amp;nbsp; &lt;/h3&gt;
Each digit of binary represents a decimal value which is 2&lt;sup&gt;n&lt;/sup&gt;, where 0 &amp;lt;= n &amp;lt; 8 .&lt;br /&gt;
&lt;br /&gt;
The leftmost digit in an 8-bit set of binary digits has the value of 2&lt;sup&gt;7&lt;/sup&gt; while the rightmost has the value of 2&lt;sup&gt;0&lt;/sup&gt;. The digits in between has the value from 2&lt;sup&gt;6&lt;/sup&gt; to 2&lt;sup&gt;1&lt;/sup&gt; in a left-to-right order.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s go right to the examples:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;11111111 = 1*2^7 + 1*2^6 + 1*2^5 + 1*2^4 + 1*2^3 + 1*2^2 + 1*2^1 + 1*2^0 = 255&lt;/li&gt;
&lt;li&gt;00000001 = 0*2^7 + 0*2^6 + 0*2^5 + 0*2^4 + 0*2^3 + 0*2^2 + 0*2^1 + 1*2^0 = 1&lt;/li&gt;
&lt;li&gt;01010101 = 0*2^7 + 1*2^6 + 0*2^5 + 1*2^4 + 0*2^3 + 1*2^2 + 0*2^1 + 1*2^0 = 85&lt;/li&gt;
&lt;li&gt;00110010 = 0*2^7 + 0*2^6 + 1*2^5 +1*2^4 + 0*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 50&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
So let&#39;s say you have sets of 3-bit binary digits:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;111 = 1*2^2 + 1*2^1 + 1*2^0 = 7&lt;/li&gt;
&lt;li&gt;010 = 0*2^2 + 1*2^1 + 0*2^0 = 2&lt;/li&gt;
&lt;li&gt;000 = 0*2^2 + 0*2^1 + 0*2^0 = 0&lt;/li&gt;
&lt;li&gt;100 = 1*2^2 + 0*2^1 + 0*2^0 = 4&amp;nbsp; &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&amp;nbsp;Or sets of 4-bit binary digits:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;0111 = 0*2^3 + 1*2^2 + 1*2^1 + 1*2^0 = 7&lt;/li&gt;
&lt;li&gt;1010 = 1*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 10&lt;/li&gt;
&lt;li&gt;0100 = 0*2^3 + 1*2^2 + 0*2^1 + 0*2^0 = 4&lt;/li&gt;
&lt;li&gt;1001 = 1*2^3 + 0*2^2 + 0*2^1 + 1*2^0 = 9 &lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;There you go. You are now capable of converting binary digits to its decimal value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Converting Binary to Octal&lt;/h3&gt;
In converting binary(base-2) to octal(base-8), you need to understand that octals are numbers ranging from 0-7 only. This means that 777 exists while 008 doesn&#39;t.&lt;br /&gt;
&lt;br /&gt;
To convert an 8-bit binary to its octal value, you need to separate it into 3-bits at a time, starting from the right. Like this:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1111 1111 =&amp;nbsp; 11 | 111 | 111&lt;/blockquote&gt;
Three bits at a time? Why is there a 2-bit part then? Simple add 0 in front to make it 3-bits. Notice that 011 == 11 in binary. So, here is the digits after separation:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
011 | 111 | 111&lt;/blockquote&gt;
&lt;/blockquote&gt;
Then what?&lt;br /&gt;
&lt;br /&gt;
Calculate each part, convert them to its decimal value.&lt;br /&gt;
&lt;br /&gt;
011 = 2+1 = 3&lt;br /&gt;
111 = 4+2+1 = 7&lt;br /&gt;
111 = 4+2 +1 = 7&lt;br /&gt;
&lt;br /&gt;
So, 11111111&lt;sub&gt;(2)&lt;/sub&gt; = 377&lt;sub&gt;(8)&lt;/sub&gt;&lt;br /&gt;
&lt;br /&gt;
Another example:&lt;br /&gt;
1010 1010 = 010 | 101 | 010 = 252&lt;sub&gt;(8)&lt;/sub&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Converting Binary to Hexadecimal&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Hexadecimal numbers range from 0 to F: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In order to convert to Hexadecimals(base-16), you will need to separate the bits four at a time.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Example:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
1111 1111&lt;sub&gt;(2)&lt;/sub&gt; = ..... &lt;sub&gt;(16)&lt;/sub&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
= 1111 | 1111&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
= 1*2^3 + 1*2^2 + 1*2^1 + 1*2^0 | 1*2^3 + 1*2^2 + 1*2^1 + 1*2^0&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
= 15 | 15&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
= FF&lt;sub&gt;(16)&lt;/sub&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
1001 1100&lt;sub&gt;(2)&lt;/sub&gt; = ..... &lt;sub&gt;(16)&lt;/sub&gt;&lt;br /&gt;
&lt;br /&gt;
= 1001 | 1100&lt;br /&gt;
= 1*2^3 + 0*2^2 + 0*2^1 + 1*2^0 | 1*2^3 + 1*2^2 + 0*2^1 + 0*2^0&lt;br /&gt;
= 9 | 12&lt;br /&gt;
= 9C&lt;sub&gt;(16)&lt;/sub&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Using the AND(&amp;amp;&amp;amp;) Operator&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Here is what the AND operator does when two values are passed to it.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;p&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; q&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; p AND q&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
Let&#39;s assume we have two sets of binary digits: 11110101 and 00110101. Using the AND operator, we will receive the result:&lt;br /&gt;
&lt;br /&gt;
11110101&lt;br /&gt;
&lt;u&gt;00110101 AND&lt;/u&gt;&lt;br /&gt;
00110101&lt;u&gt; &lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
Another example with 00001110 and 11101100.&lt;br /&gt;
&lt;br /&gt;
00001110&lt;br /&gt;
&lt;u&gt;11101100 AND&lt;/u&gt;&lt;br /&gt;
00001100&lt;br /&gt;
&lt;u&gt; &lt;/u&gt;&lt;br /&gt;
&lt;u&gt; &lt;/u&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Using the OR(||) Operator&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The table of OR looks like this:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;p&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; q&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; p AND q&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
So, if your perform an OR on 11110000 and 00001111, you will get:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
11110000&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;00001111 OR&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
11111111&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt; &lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt; &lt;/u&gt;It is similar to the AND operator, only with different rules.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Using the XOR(^) Operator&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The XOR Operator is also called the Exclusive OR. Its table has values like this:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;p&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; q&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; p AND q&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; 0&lt;/td&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
It can be used to swap digits. Let me show you.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Let A be 00110011 and B be 01011100.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
We would like to swap the value of A and B.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
We can use the XOR Operator to accomplish the task, like this:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;A = A ^ B&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;B = A ^ B&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;A = A ^ B &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The formula can also be simplified as &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;A^=B^=A^=B&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The process looks like this: &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A = 00110011&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
B = &lt;u&gt;01011100 XOR&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A = 01101111&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A = 01101111 &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
B = &lt;u&gt;01011100 XOR&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
B = 00110011 ------------------- B is now A&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A = 01101111&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
B = &lt;u&gt;00110011 XOR&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
A = 01011100 ------------------- A is now B&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt; &lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt; &lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
These concepts can be applied to your programming. For example you can create a swap function using the XOR operator.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Good luck trying, pals.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Regards,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/9217293276342958663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/11/binary-conversions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/9217293276342958663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/9217293276342958663'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/11/binary-conversions.html' title='Binary Conversions'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-5508659981093569340</id><published>2013-11-09T10:25:00.001+07:00</published><updated>2013-11-09T10:25:13.233+07:00</updated><title type='text'>The For Loop in C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The loop is one of the most critical parts of programming.&lt;br /&gt;
According to Wikipedia, a loop is a sequence of statements which is specified once but which may be carried out several times in succession. Read more about Loops &lt;a href=&quot;http://en.wikipedia.org/wiki/Loop_%28computing%29#Loops&quot; target=&quot;_blank&quot;&gt;here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So, basically, a loop is a statement used to repeat one or more actions for a specified number of times.&lt;br /&gt;
&lt;br /&gt;
There are two types of loop :&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Finite Loop&lt;/li&gt;
&lt;li&gt;Infinite Loop &lt;/li&gt;
&lt;/ol&gt;
When looping, in most cases, you would want to avoid infinite loops because it might crash your whole system.&lt;br /&gt;
&lt;br /&gt;
There are actually several kinds of Loops in C which are the For loop, the While loop, and the Do...While Loop. But today, we are going to discuss about the For loop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let&#39;s go straight to the syntax of declaring a for loop:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
for(&lt;span style=&quot;color: cyan;&quot;&gt;initial_condition&lt;/span&gt;;&lt;span style=&quot;color: cyan;&quot;&gt;loop_condition&lt;/span&gt;;&lt;span style=&quot;color: cyan;&quot;&gt;increment&lt;/span&gt;){&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;//statement1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;//statement2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;//.... &lt;/span&gt;&lt;br /&gt;
}&lt;/blockquote&gt;
The initial condition is set by assigning a value to a variable, called &lt;span style=&quot;color: red;&quot;&gt;Control Variable&lt;/span&gt;.&lt;br /&gt;
The loop condition is the condition to be checked at the start of every loop cycle. If the condition is true, continue the looping process, else, break(or stop) the process.&lt;br /&gt;
The increment is the value added to the &lt;span style=&quot;color: red;&quot;&gt;Control Variable&lt;/span&gt; at the end of every loop cycle.&lt;br /&gt;
The statements within the parentheses are the statements to be executed in every cycle of the loop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Output numbers from 1 - 10 using no more than 1 printf function.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&amp;nbsp;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&amp;nbsp;//declaration of control variable&lt;br /&gt;&amp;nbsp;int i = 0;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;//declaration of for loop&lt;br /&gt;&amp;nbsp;for(i = 1; i &amp;lt;= 10; i++){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d\n&quot;, i);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;system(&quot;Pause&quot;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;return 0;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
Magically, it works. Here is the result :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjseQFmiwRVBt8sACIKlH1qNVykqkVzlbfc-2cInpMd5nYkI7kdTTlhpGcCYfLGPs3zgdvhO6VWq1ffXzIwToK4XYFeYMEVAA0am6xNIKIa8tr9H3PyH4xWmSScgssA8XFSCwHiubwAUkr3/s1600/loopc.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjseQFmiwRVBt8sACIKlH1qNVykqkVzlbfc-2cInpMd5nYkI7kdTTlhpGcCYfLGPs3zgdvhO6VWq1ffXzIwToK4XYFeYMEVAA0am6xNIKIa8tr9H3PyH4xWmSScgssA8XFSCwHiubwAUkr3/s400/loopc.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Let me explain the loop declaration part.&lt;br /&gt;
&lt;br /&gt;There is &lt;b&gt;&lt;span style=&quot;color: cyan;&quot;&gt;i = 1&lt;/span&gt;&lt;/b&gt;, this means, the count starts from 1.&lt;br /&gt;
Then, there is &lt;b&gt;&lt;span style=&quot;color: cyan;&quot;&gt;i &amp;lt;= 10&lt;/span&gt;&lt;/b&gt;, this indicates that the loop will only end after i is larger than 10. If &lt;span style=&quot;color: cyan;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt; is still in range (1-10), the loop will continue to display &lt;span style=&quot;color: cyan;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt;, which is incremented by 1 every cycle by using the &lt;span style=&quot;color: cyan;&quot;&gt;&lt;b&gt;i++&lt;/b&gt;&lt;/span&gt; statement.&lt;br /&gt;
&lt;br /&gt;
Note : You can also use +1 increment this way -&amp;gt; &lt;span style=&quot;color: cyan;&quot;&gt;&lt;b&gt;i += 1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, let&#39;s mess a little with the increment part of loop now.&lt;br /&gt;
Let us create two loops to display odd and even numbers from 1-10, respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #eeeeee;&quot;&gt;&lt;span style=&quot;color: #cccccc;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&amp;nbsp;//declaration of control variable&lt;br /&gt;&amp;nbsp;int i = 0;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;//declaration of for loop for odd numbers&lt;br /&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;Odd numbers:\n&quot;);&lt;br /&gt;&amp;nbsp;for(i = 1; i &amp;lt;= 10; i += 2){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d\n&quot;, i);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;//declaration of for loop for even numbers&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;printf(&quot;\nEven numbers:\n&quot;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;for(i = 2; i &amp;lt;= 10; i += 2){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d\n&quot;, i);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;system(&quot;Pause&quot;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;return 0;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
As you can see from the code, there are two for loops having the same increment but producing different results. If you look closely, you will find that the only difference is in the initial value of both loops. To obtain odd numbers, you start from 1 and add by 2 each loop. However, in order to display even numbers, you need to start from 2(the first even number in range) and increment it by 2 through the loop. You can see the result below:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRrxIbHIYfGi8fc-YGwHRxMOC7yA-4W6NvAAxZs0L1EX7HC2G-jdhWhmVlddBBH6N-Sqpj-60lvg6KskUAy0sEXrd8yEmhEITgEiBsGgbYOIsjfukjxgabK7kV5zFd3_aHC5IzwVn4NK7b/s1600/loopd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRrxIbHIYfGi8fc-YGwHRxMOC7yA-4W6NvAAxZs0L1EX7HC2G-jdhWhmVlddBBH6N-Sqpj-60lvg6KskUAy0sEXrd8yEmhEITgEiBsGgbYOIsjfukjxgabK7kV5zFd3_aHC5IzwVn4NK7b/s400/loopd.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
To close this post, I would like to present you with an example of creating an infinite loop.&lt;br /&gt;
Despite the fact that we are doing it in purpose right now, it might happen a lot as accidents in programming later on. Here it is:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&amp;nbsp;//declaration of control variable&lt;br /&gt;&amp;nbsp;int i = 0;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;//declaration of for loop for odd numbers&lt;br /&gt;&lt;br /&gt;&amp;nbsp;for(i = 1; i &amp;lt;= 10; i--){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;*&quot;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;system(&quot;Pause&quot;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;return 0;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;It prints the * symbol endlessly. Why? As you can see, the loop condition is i &amp;lt;= 10 while the loop increment is i--. This ensures that the i never reaches 10 or above(not even 2 actually).&lt;br /&gt;
&lt;br /&gt;
Note: To stop the program, press Ctrl + C&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Loops can be used for many occasions, you have to experiment by yourself in order to be fluent in using loops. Any questions are welcomed. Post them here as comments or send it to my email at cyberfrostprogrammer@yahoo.com.&lt;br /&gt;
&lt;br /&gt;
Thank you for reading.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/5508659981093569340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/11/the-for-loop-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5508659981093569340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5508659981093569340'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/11/the-for-loop-in-c.html' title='The For Loop in C'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjseQFmiwRVBt8sACIKlH1qNVykqkVzlbfc-2cInpMd5nYkI7kdTTlhpGcCYfLGPs3zgdvhO6VWq1ffXzIwToK4XYFeYMEVAA0am6xNIKIa8tr9H3PyH4xWmSScgssA8XFSCwHiubwAUkr3/s72-c/loopc.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-892694194966519401</id><published>2013-10-30T11:34:00.000+07:00</published><updated>2013-10-30T11:40:41.273+07:00</updated><title type='text'>Arrays and Self-Pointers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Let&#39;s jump a little bit further to &quot;Arrays and Self-Pointers&quot;.&lt;br /&gt;
I apologize to go directly to this part, but I do have to explain this now. I will go back to the basics later on.&lt;br /&gt;
&lt;br /&gt;
First of all, let&#39;s define the meaning of an Array. An array is a group of &lt;span style=&quot;color: red;&quot;&gt;contiguous&lt;/span&gt; memory location that has &lt;span style=&quot;color: red;&quot;&gt;a predefined size&lt;/span&gt; as well as &lt;span style=&quot;color: red;&quot;&gt;one data type&lt;/span&gt; for all its elements.&lt;br /&gt;
&lt;br /&gt;
Before I can explain the terms contiguous, predefined size, and one data type, I will first show you an example of array declaration :&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &lt;span style=&quot;color: #76a5af;&quot;&gt;data_type&lt;/span&gt; array_name[&lt;span style=&quot;color: red;&quot;&gt;size&lt;/span&gt;] = {element-1, element-2, element-2, ... , element-size};&lt;/blockquote&gt;
Just like variables, you need to initialize the elements in an Array before using it to prevent runtime errors. It is done by assigning values to each of the elements in the array using the equal sign (=) then followed by an open parenthesis and the value of element-1, element-2, and so on, then finally closing it up with a closing parenthesis.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Now, I am going to explain about the terms.&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Contiguous&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It means every element in an Array is located next to one another in the memory depending on&amp;nbsp; their index. Why is this so important?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With this feature of array, it is possible to do sorting, searching, and many more since you can easily loop through every element in an Array due to its elements contiguous memory location. This will be shown in an example later in the post.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;A Predefined Size&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Since an Array&#39;s memory locations for its elements need to be contiguous, it needs a proper declaration for size, so that it can allocate the space in the memory for storing the value of the elements it has.Once the size is declared, an array cannot be resized during runtime.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;One Data Type&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; An Array can only store elements of one uniform data type.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example : an &lt;b&gt;int &lt;/b&gt;array can only store integer values in it.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why? If you refer to the &lt;a href=&quot;http://cyberfrost-computing.blogspot.com/2013/10/variables-in-c.html&quot; target=&quot;_blank&quot;&gt;previous post about variables&lt;/a&gt;, you can see that every data type has different sizes, so, if you store a double value into an integer array, you will absolutely get the wrong value when you use the value again, which is why you can only store values with the same data type.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Viewing The Value of An Array Element&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
To look at the value of an array element, you can simply use printf or any other output functions in C.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Note : An array index starts from 0, so an array[0] will have indexes of 0-9 only.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;span style=&quot;color: #b6d7a8;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Declaring an Integer Array with the size of 4&lt;/span&gt;&lt;br /&gt;&amp;nbsp;int array[4] = {1, 3, 5, 7};&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 0 of array[4]&lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[0] = %d\n&quot;, array[0]);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 1 of array[4]&lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[1] = %d\n&quot;, array[1]);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 2 of array[4] &lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[2] = %d\n&quot;, array[2]);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 3 of array[4] &lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[3] = %d\n&quot;, array[3]); &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;/*Pausing the screen to see results,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;**because dev-cpp does not freeze at the end of program&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;**/&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&amp;nbsp;system(&quot;Pause&quot;);&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//returns 0 to indicate successful run&lt;/span&gt;&lt;br /&gt;&amp;nbsp;return 0;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&amp;nbsp;To see how it works, just type the code into your Dev-Cpp (or other IDEs) and run.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Assigning Values to Array Elements&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
To assign values to an array element, you simply use this syntax:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;array_name[index] = value;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&amp;nbsp;Example:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #b6d7a8;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;int main(){&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: lime;&quot;&gt; //Declaring an Integer Array with the size of 4&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;int array[4] = {1, 3, 5, 7};&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: lime;&quot;&gt; //Prints the value in index 0 of array[4] before value changes&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;printf(&quot;array[0] = %d\n&quot;, array[0]); &lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: lime;&quot;&gt;//Asigns value 9 to array[0]&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cccccc;&quot;&gt; array[0] = 9;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 0 of array[4] after value changes&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;printf(&quot;array[0] = %d\n&quot;, array[0]);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; system(&quot;Pause&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Self-Pointers&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Now, we come to an interesting part of the Array data structure.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Please take note that : &lt;span style=&quot;color: red;&quot;&gt;An array&#39;s name is&amp;nbsp; the address of its first element in memory.&lt;/span&gt; &lt;/div&gt;
&lt;br /&gt;
Let&#39;s say you have an array of size 10.&lt;br /&gt;
Assuming that the address of its first element is 123, the address of its second element would be 124, and the address of its third element would be 125, and so on. How is that possible? Scroll to the &lt;span style=&quot;color: red;&quot;&gt;Contiguous&lt;/span&gt; section.&lt;br /&gt;
&lt;br /&gt;
Now how can we make use of that?&lt;br /&gt;
First, I would like to introduce &lt;b&gt;Pointer&lt;/b&gt; to you.&lt;br /&gt;
A pointer is a variable that stores the memory location of another storage types(variables, arrays, etc.).&lt;br /&gt;
Okay, so it stores memory locations, now what?&lt;br /&gt;
If you assign an array&#39;s name to it, what happens?&amp;nbsp; It stores the location of the first element of the array in the memory. Then what can you do with that?&lt;br /&gt;
You can easily do pass-by-reference to functions, you can do self-pointing, you can also view/modify the value of an array element without actually having to access the array itself (indirection), and many more.&lt;br /&gt;
&lt;br /&gt;
As an example, I will show you how to use pointers to self-point using an array.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;span style=&quot;color: #b6d7a8;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Declaring an Integer Array with the size of 4&lt;/span&gt;&lt;br /&gt;&amp;nbsp;int array[4] = {1, 3, 5, 7};&lt;br /&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;Viewing array elements through indexes :\n&quot;);&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 0 of array[4]&lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[0] = %d\n&quot;, array[0]);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 1 of array[4]&lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[1] = %d\n&quot;, array[1]);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 2 of array[4] &lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[2] = %d\n&quot;, array[2]);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 3 of array[4] &lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[3] = %d\n&quot;, array[3]); &lt;br /&gt;&amp;nbsp;printf(&quot;\nViewing array elements through self-pointers :\n&quot;);&lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp;//Prints the value in location &#39;array&#39;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[0] = %d\n&quot;, *array);&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in location &#39;array+1&#39;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[1] = %d\n&quot;, *(array+1));&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in location &#39;array+2&#39; &lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[2] = %d\n&quot;, *(array+2));&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in location &#39;array+3&#39; &lt;/span&gt;&lt;br /&gt;&amp;nbsp;printf(&quot;array[3] = %d\n&quot;, *(array+3)); &lt;br /&gt;&lt;br /&gt;&amp;nbsp;system(&quot;Pause&quot;);&lt;br /&gt;&amp;nbsp;return 0;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You can also assign values to an array element using a self-pointer.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b6d7a8;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;int main(){&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: lime;&quot;&gt; //Declaring an Integer Array with the size of 4&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;int array[4] = {1, 3, 5, 7};&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: lime;&quot;&gt; //Prints the value in index 1 of array[4] before value changes&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;printf(&quot;array[1] = %d\n&quot;, array[1]); &lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: lime;&quot;&gt;//Asigns value 9 to array[1] using a pointer&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cccccc;&quot;&gt; *(array+1) = 9;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: lime;&quot;&gt;//Prints the value in index 1 of array[4] after value changes&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #cccccc;&quot;&gt;printf(&quot;array[1] = %d\n&quot;, array[1]);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; system(&quot;Pause&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
That was just a preview on &lt;span style=&quot;color: red;&quot;&gt;Pointers&lt;/span&gt;. More on next posts.&lt;br /&gt;
Hope it inspires you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/892694194966519401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/arrays-and-self-pointers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/892694194966519401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/892694194966519401'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/arrays-and-self-pointers.html' title='Arrays and Self-Pointers'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-6047151661644728892</id><published>2013-10-27T12:18:00.005+07:00</published><updated>2013-10-27T12:18:55.765+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="CMD"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Variables in C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Just like any other programming languages, C also has variables.&lt;br /&gt;
If you do not know already, a variable is a storage location for several types of values.&lt;br /&gt;
There are 4 basic types of variable type specifiers in C, according to Wikipedia :&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;-char&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-int&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-float&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-double&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&amp;nbsp; &lt;/code&gt;&lt;br /&gt;which can be combined with optional specifiers :&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;-signed&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-unsigned&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-short&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-long&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;In total, there are 28 basic data types in C. Here is the complete list along with the description: &lt;a href=&quot;http://en.wikipedia.org/wiki/C_data_types&quot;&gt;http://en.wikipedia.org/wiki/C_data_types&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The syntax to declare a variable in C is simple, which is :&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: cyan;&quot;&gt;data_type&lt;/span&gt; var_name = &lt;span style=&quot;color: red;&quot;&gt;initial_value&lt;/span&gt;;&lt;/blockquote&gt;
Let&#39;s see how we use it in a C source code:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;//declaring the variables&lt;br /&gt;int a = 5;&lt;br /&gt;int b = 2;&lt;br /&gt;int c = a + b;&lt;br /&gt;//printing the value of c, which is a+b, or 5+2&lt;br /&gt;printf(&quot;%d&quot;,c);&lt;br /&gt;//printing a new line&lt;br /&gt;printf(&quot;\n&quot;);&lt;br /&gt;//pausing the program to see the result&lt;br /&gt;system(&quot;Pause&quot;);&lt;br /&gt;return 0; &lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
If you can see, I wrote several lines of words using a &quot;//&quot; sign in front. They are called comments. Comments will not be run by the compiler, they are only used to aid programmers to understand the source code. More about comments in the next post.&lt;br /&gt;
&lt;br /&gt;
From the code you can see that I declared an Integer &lt;b&gt;a&lt;/b&gt; with the initial value of &lt;b&gt;5 &lt;/b&gt;and Integer &lt;b&gt;b&lt;/b&gt; with the initial value of &lt;b&gt;2. &lt;/b&gt;I then declared another Integer &lt;b&gt;c &lt;/b&gt;with the value of &lt;b&gt;a&lt;/b&gt; + &lt;b&gt;b&lt;/b&gt;. Next, I print out the result, which is the value of &lt;b&gt;c &lt;/b&gt;using &lt;b&gt;printf.&lt;/b&gt;&lt;br /&gt;
You can also use other data types for different operations. Let&#39;s do division with &lt;b&gt;integer&lt;/b&gt; and &lt;b&gt;float &lt;/b&gt;data types for example. Here is the code :&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;//declaring the variables&lt;br /&gt;float a=5;&lt;br /&gt;int b=2;&lt;br /&gt;float c=a/b;&lt;br /&gt;//printing the value of c, which is a/b, or 5/2&lt;br /&gt;printf(&quot;%f&quot;,c);&lt;br /&gt;//printing a new line&lt;br /&gt;printf(&quot;\n&quot;);&lt;br /&gt;//pausing the program to see the result&lt;br /&gt;system(&quot;Pause&quot;);&lt;br /&gt;return 0; &lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
The code is pretty much the same, with small modifications here and there.&lt;br /&gt;
If you notice, we cannot use integers as the dividend here. Why?&lt;br /&gt;
An Integer will always be a non-decimal number, which will give you a wrong result of the division if you declare &lt;b&gt;a &lt;/b&gt;or&lt;b&gt; c&lt;/b&gt;, or both, as an Integer. Ex : 5/2 = 2.&lt;br /&gt;
&lt;br /&gt;
There you go. Now you can apply variables in your codes. Congratulations !&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/6047151661644728892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/variables-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/6047151661644728892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/6047151661644728892'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/variables-in-c.html' title='Variables in C'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-5210155117693334355</id><published>2013-10-27T12:18:00.004+07:00</published><updated>2013-10-27T12:18:46.392+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="CMD"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Basic Structure of C Programs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Every programming language has its basic structure, that is, how and where the lines of code are written.&lt;br /&gt;
&lt;br /&gt;
In C, it looks like this :&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;span style=&quot;color: #93c47d;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; main(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: lime;&quot;&gt; //statement1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //statement2;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //..........;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: cyan;&quot;&gt;return&lt;/span&gt; 0; &lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
Let&#39;s start from the top.&lt;br /&gt;
&lt;br /&gt;
The &lt;span style=&quot;color: #6aa84f;&quot;&gt;#include&lt;/span&gt; statement is used for including a header file into your program. In this case, &lt;b&gt;stdio.h.&lt;/b&gt;&lt;br /&gt;
It must precede any other lines of code in your source file.&lt;br /&gt;
The &lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; is a return type specifier for the function &lt;b&gt;main()&lt;/b&gt;. Every C program must have a &lt;b&gt;main() &lt;/b&gt;function in order to run. Even though your program has a thousand lines of code, it will start by executing the &lt;b&gt;main()&lt;/b&gt; function.&lt;br /&gt;
&lt;br /&gt;More about return type of &lt;b&gt;main()&lt;/b&gt;:&lt;br /&gt;
The &lt;b&gt;main()&lt;/b&gt; function returns 0. which is an &lt;span style=&quot;color: cyan;&quot;&gt;int&lt;/span&gt; as an indicator to the compiler that the program was well-executed (without error).&lt;br /&gt;
&lt;br /&gt;
Then, there are these symbols, the {parentheses}, to indicate the start and the end of the &lt;b&gt;main() &lt;/b&gt;function. Every line of code, or &lt;b&gt;statement&lt;/b&gt;, within the parentheses must be followed by a &lt;b&gt;semicolon&lt;/b&gt; (;).&lt;br /&gt;
&lt;br /&gt;
Finally, there is the &lt;span style=&quot;color: cyan;&quot;&gt;return&lt;/span&gt; statement, which pretty much describes its function already : to return a value from the function it represents. In this case, it is the &lt;b&gt;main()&lt;/b&gt; function.&lt;br /&gt;
&lt;br /&gt;
The End. By now you should have the basic knowledge to start writing codes in C.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/5210155117693334355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/basic-structure-of-c-programs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5210155117693334355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5210155117693334355'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/basic-structure-of-c-programs.html' title='Basic Structure of C Programs'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-2962034571726315539</id><published>2013-10-27T11:04:00.000+07:00</published><updated>2013-10-27T12:26:20.271+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CMD"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Downloads"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Coding in C using Dev-Cpp IDE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Greetings, fellow coders.&lt;br /&gt;
&lt;br /&gt;
Today, I am going to show you an open-source application which enables easy coding and compiling of C programs. It is named Dev-Cpp or Dev-C++, which can be used as an IDE(Integrated Development Environment) to code and to compile C++ as well as C programs.&lt;br /&gt;
&lt;br /&gt;
You can get a free copy of it here :&amp;nbsp; &lt;a href=&quot;http://www.bloodshed.net/dev/devcpp.html&quot;&gt;http://www.bloodshed.net/dev/devcpp.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After you downloaded and installed Dev-Cpp on your computer, run the devcpp.exe file.&lt;br /&gt;
&lt;br /&gt;
After the splash screen you will see :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMrvsJFBLUGJQicE-GaWKYkg3LIAfjKVlGEOEwVeU4E1TMc7qKYkh3AboqggJD-ZJFsCNu48TSzDFwge0euzoT2IZf5LoK-BsS6vhbZC-EV2Lf915YxR6jVZlgFLNXGJMOre6kl1M11eiR/s1600/dev1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMrvsJFBLUGJQicE-GaWKYkg3LIAfjKVlGEOEwVeU4E1TMc7qKYkh3AboqggJD-ZJFsCNu48TSzDFwge0euzoT2IZf5LoK-BsS6vhbZC-EV2Lf915YxR6jVZlgFLNXGJMOre6kl1M11eiR/s400/dev1.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Simply close the Tip of the Day window and we shall continue.&lt;br /&gt;
&lt;br /&gt;
At the top left of Dev-Cpp, you will see the &lt;b&gt;File&lt;/b&gt; menu, click on it to start a new &lt;b&gt;Project&lt;/b&gt; or &lt;b&gt;Source&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s try to create a C source file.&lt;br /&gt;
Click on &lt;b&gt;File&amp;gt;New&amp;gt;Source File. &lt;/b&gt;A new tab will open up, like this :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW1xJ5HKAlBfB6wIKBXM0yxuWduTOIXyfU6oSFulKYuI5javU8ZJG2CyVIHv19CuDQxOXLPw-hR-yReA_4pQfe7NzxVOPMwTDEynxTfRtxKgn-w3C0B3gyDgLD3l77s62OAmkEm4phTXwc/s1600/dev2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW1xJ5HKAlBfB6wIKBXM0yxuWduTOIXyfU6oSFulKYuI5javU8ZJG2CyVIHv19CuDQxOXLPw-hR-yReA_4pQfe7NzxVOPMwTDEynxTfRtxKgn-w3C0B3gyDgLD3l77s62OAmkEm4phTXwc/s400/dev2.JPG&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Now type in this code to the code editor:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&amp;nbsp;printf(&quot;Hello World\n&quot;);&lt;br /&gt;&amp;nbsp;system(&quot;Pause&quot;);&amp;nbsp; &lt;br /&gt;&amp;nbsp;return 0;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&amp;nbsp;Done? Now click the &lt;b&gt;Execute&lt;/b&gt; menu and choose &lt;b&gt;Compile &amp;amp; Run&lt;/b&gt; or simply press &lt;b&gt;F9.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;It will then ask you to save the source file first. Just save it wherever you desire, but make sure it is in the &lt;b&gt;C source files (*.c) &lt;/b&gt;format.&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;After saving, a window will show up, looking like this :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDumDbn-fP6vYPBPTFYyKYtO5dyBf5J8s83qxFyh_4I_1IBGSfLS_1qjAjTKcJPrP4HzxaupodzRTpBsnnU5GeVXje9WJK1LIUm3PirX9fstbtb0aIbDHaZDSxM0Tk4g9E2WFj68ew8y4e/s1600/dev3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDumDbn-fP6vYPBPTFYyKYtO5dyBf5J8s83qxFyh_4I_1IBGSfLS_1qjAjTKcJPrP4HzxaupodzRTpBsnnU5GeVXje9WJK1LIUm3PirX9fstbtb0aIbDHaZDSxM0Tk4g9E2WFj68ew8y4e/s400/dev3.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Congratulations, you have successfully created a C program using Dev-Cpp !&lt;br /&gt;
&lt;br /&gt;
On the next few posts, I will be giving tutorials on creating C programs with this user-friendly IDE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/2962034571726315539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/coding-in-c-using-dev-cpp-ide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2962034571726315539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2962034571726315539'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/10/coding-in-c-using-dev-cpp-ide.html' title='Coding in C using Dev-Cpp IDE'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMrvsJFBLUGJQicE-GaWKYkg3LIAfjKVlGEOEwVeU4E1TMc7qKYkh3AboqggJD-ZJFsCNu48TSzDFwge0euzoT2IZf5LoK-BsS6vhbZC-EV2Lf915YxR6jVZlgFLNXGJMOre6kl1M11eiR/s72-c/dev1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-8860414765872262267</id><published>2013-09-18T14:42:00.001+07:00</published><updated>2013-09-18T14:42:14.979+07:00</updated><title type='text'>Project Euler - Problem 11</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello readers,&lt;br /&gt;
It is true that I haven&#39;t been posting for a long time. I was bothered by my university entrance preparation. Now that I managed to enter a university, which is Binus International University in Jakarta and majoring in Computer Science, I can finally post again.&lt;br /&gt;
&lt;br /&gt;
I was doing a Project Euler problem earlier today.&lt;br /&gt;
Link to Problem 11 : &lt;a href=&quot;http://projecteuler.net/problem=11&quot;&gt;http://projecteuler.net/problem=11&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To solve this seemingly confusing problem, I use VB.NET.&lt;br /&gt;
Here is the solution.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
Module Module1&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sub Main()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim list1 As String = &quot;08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80 24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50 32 98 81 28 64 23 67 10 26 38 40 67 59 54 70 66 18 38 64 70 67 26 20 68 02 62 12 20 95 63 94 39 63 08 40 91 66 49 94 21 24 55 58 05 66 73 99 26 97 17 78 78 96 83 14 88 34 89 63 72 21 36 23 09 75 00 76 44 20 45 35 14 00 61 33 97 34 31 33 95 78 17 53 28 22 75 31 67 15 94 03 80 04 62 16 14 09 53 56 92 16 39 05 42 96 35 31 47 55 58 88 24 00 17 54 24 36 29 85 57 86 56 00 48 35 71 89 07 05 44 44 37 44 60 21 58 51 54 17 58 19 80 81 68 05 94 47 69 28 73 92 13 86 52 17 77 04 89 55 40 04 52 08 83 97 35 99 16 07 97 57 32 16 26 26 79 33 27 98 66 88 36 68 87 57 62 20 72 03 46 33 67 46 55 12 32 63 93 53 69 04 42 16 73 38 25 39 11 24 94 72 18 08 46 29 32 40 62 76 36 20 69 36 41 72 30 23 88 34 62 99 69 82 67 59 85 74 04 36 16 20 73 35 29 78 31 90 01 74 31 49 71 48 86 81 16 23 57 05 54 01 70 54 71 83 51 54 69 16 92 33 48 61 43 52 01 89 19 67 48 &quot;&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
&#39;create list to be processed later on&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim list2(400) As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim x, i As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 0 To 399&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list2(x) = CInt(Mid(list1, i, 2))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 0 To 399&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If i = 20 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Write(list2(x))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf i &amp;lt; 20 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.Write(list2(x) &amp;amp; &quot; &quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine()&lt;br /&gt;&lt;br /&gt;&#39;processing stages&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim temp, largest, pos As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;horizontal&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 0 To 395&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 16 Then x = 20&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 36 Then x = 40&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 56 Then x = 60&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 76 Then x = 80&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 96 Then x = 100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 116 Then x = 120&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 136 Then x = 140&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 156 Then x = 160&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 176 Then x = 180&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 196 Then x = 200&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 216 Then x = 220&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 236 Then x = 240&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 256 Then x = 260&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 276 Then x = 280&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 296 Then x = 300&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 316 Then x = 320&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 336 Then x = 340&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 356 Then x = 360&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 376 Then x = 380&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 396 Then x = 400&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = list2(x) * list2(x + 1) * list2(x + 2) * list2(x + 3)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If temp &amp;gt; largest Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = temp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = x&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Numbers(H) : &quot; &amp;amp; list2(pos) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 1) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 2) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 3))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Product(H) : &quot; &amp;amp; largest)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;vertical&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 0 To 319&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = list2(x) * list2(x + 20) * list2(x + 40) * list2(x + 60)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If temp &amp;gt; largest Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = temp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = x&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Numbers(V) : &quot; &amp;amp; list2(pos) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 20) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 40) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 60))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Product(V) : &quot; &amp;amp; largest)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;diagonal1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 0 To 336&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 16 Then x = 20&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 36 Then x = 40&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 56 Then x = 60&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 76 Then x = 80&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 96 Then x = 100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 116 Then x = 120&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 136 Then x = 140&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 156 Then x = 160&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 176 Then x = 180&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 196 Then x = 200&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 216 Then x = 220&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 236 Then x = 240&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 256 Then x = 260&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 276 Then x = 280&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 296 Then x = 300&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 316 Then x = 320&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = list2(x) * list2(x + 11) * list2(x + 22) * list2(x + 33)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If temp &amp;gt; largest Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = temp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = x&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Numbers(D1) : &quot; &amp;amp; list2(pos) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 11) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 22) &amp;amp; &quot;, &quot; &amp;amp; list2(pos + 33))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Product(D1) : &quot; &amp;amp; largest)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;diagonal2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 396 To 60 Step -1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 379 Then x = 376&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 359 Then x = 356&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 339 Then x = 336&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 319 Then x = 316&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 299 Then x = 296&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 279 Then x = 276&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 259 Then x = 256&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 239 Then x = 236&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 219 Then x = 216&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 199 Then x = 196&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 179 Then x = 176&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 159 Then x = 156&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 139 Then x = 136&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 119 Then x = 116&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 99 Then x = 96&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 79 Then x = 76&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x = 59 Then x = 56&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = list2(x) * list2(x - 19) * list2(x - 38) * list2(x - 57)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If temp &amp;gt; largest Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; largest = temp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = x&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Numbers(D2) : &quot; &amp;amp; list2(pos) &amp;amp; &quot;, &quot; &amp;amp; list2(pos - 19) &amp;amp; &quot;, &quot; &amp;amp; list2(pos - 38) &amp;amp; &quot;, &quot; &amp;amp; list2(pos - 57))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Product(D2) : &quot; &amp;amp; largest)&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/span&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;span style=&quot;color: #999999;&quot;&gt;End Module&lt;/span&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
That was the code, it consists of four major processes, which is to search for the largest product of four numbers :&lt;br /&gt;
1. Horizontally&lt;br /&gt;
2. Vertically&lt;br /&gt;
3. Diagonally from top left to bottom right&lt;br /&gt;
4. Diagonally from bottom left to top right&lt;br /&gt;
&lt;br /&gt;
Running the code above, we will obtain the answer, which is &lt;b&gt;70600674.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Take your time to understand the code, no need to hurry.&lt;br /&gt;
I will be back with more solutions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Happy Coding,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&amp;nbsp;&lt;/b&gt; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/8860414765872262267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/09/project-euler-problem-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8860414765872262267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8860414765872262267'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2013/09/project-euler-problem-11.html' title='Project Euler - Problem 11'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-4875680623020391333</id><published>2012-11-19T22:18:00.002+07:00</published><updated>2012-11-19T22:18:58.648+07:00</updated><title type='text'>Fibonacci Calculator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;Today, I&#39;m going to give you a code to add a requested number of &lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Fibonacci_number&quot; target=&quot;_blank&quot;&gt;Fibonacci numbers&lt;/a&gt;&lt;/span&gt; into a ListBox.&lt;br /&gt;
&lt;br /&gt;
Components needed :&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;1 List Box&lt;/li&gt;
&lt;li&gt;1 Text Box&lt;/li&gt;
&lt;li&gt;1 Label&lt;/li&gt;
&lt;li&gt;1 Button &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span&gt;&lt;/span&gt;&lt;br /&gt;
Let the Fibonacci Sequence be&amp;nbsp; : &lt;b&gt;1,&lt;/b&gt; &lt;strong&gt;1, 2, 3, 5, 8, 13, 24, ...&lt;/strong&gt;&lt;br /&gt;

Let &lt;strong&gt;n&lt;/strong&gt; be the number of the Fibonacci numbers to be added to the list&lt;strong&gt; List1&lt;/strong&gt;.&lt;br /&gt;

Let &lt;strong&gt;l&lt;/strong&gt; be the number of loops to be conducted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;Private Sub Command1_Click()&lt;br /&gt;Dim a, b, c As Double&lt;br /&gt;Dim l, n As Integer&lt;br /&gt;a = 0&lt;br /&gt;b = 1&lt;br /&gt;n = Val(Text1.Text)&lt;br /&gt;For l = 1 To n&lt;br /&gt;a = b&lt;br /&gt;b = c&lt;br /&gt;c = a + b&lt;br /&gt;List1.AddItem (c)&lt;br /&gt;Next&lt;br /&gt;End Sub&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The idea here is to swap between a,b, and c to obtain the next number in the Fibonacci sequence.&lt;br /&gt;
It&#39;s as simple as that.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s a preview of what it looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQVVH8Lom5FTffz3TSPLTQf9Cqupz-23K8DI6L81df09au83gUI_TvSMPl5AesYOXrJ7BCJGwhCyqKcDU-gk3jQPt88PnIOcHpBkbK8qB7oam11-04TNPhLsl99DO8QLtPX235oshaei30/s1600/fib2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQVVH8Lom5FTffz3TSPLTQf9Cqupz-23K8DI6L81df09au83gUI_TvSMPl5AesYOXrJ7BCJGwhCyqKcDU-gk3jQPt88PnIOcHpBkbK8qB7oam11-04TNPhLsl99DO8QLtPX235oshaei30/s320/fib2.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Note: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;The Fibonacci sequence is an interesting set of numbers. You might want to do some research on it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding,&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/4875680623020391333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/11/fibonacci-calculator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/4875680623020391333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/4875680623020391333'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/11/fibonacci-calculator.html' title='Fibonacci Calculator'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQVVH8Lom5FTffz3TSPLTQf9Cqupz-23K8DI6L81df09au83gUI_TvSMPl5AesYOXrJ7BCJGwhCyqKcDU-gk3jQPt88PnIOcHpBkbK8qB7oam11-04TNPhLsl99DO8QLtPX235oshaei30/s72-c/fib2.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-2636362525877609871</id><published>2012-10-01T21:57:00.002+07:00</published><updated>2012-10-01T21:58:31.455+07:00</updated><title type='text'>Project Euler - Problem 6 (Java)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This time, I&#39;m giving out the solution of Problem 6 in the form of Java code.&lt;br /&gt;
&lt;br /&gt;
Without wasting more time, here&#39;s the code:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;class euler6 {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;public static void main (String [] args) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;int x = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;int y = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;for(int i=1;i&amp;lt;101;i++) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;x += i;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;for(int j=1;j&amp;lt;101;j++) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;y += Math.pow(j, 2);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;System.out.println(&quot;Square of the sum of the first one hundred natural numbers : &quot; + Math.pow(x, 2));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;System.out.println(&quot;Sum of the squares of the first one hundred natural numbers : &quot; + y);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;System.out.println(&quot;Hence, the difference of both numbers is &quot; + Math.pow(x, 2) + &quot; - &quot; + y + &quot; = &quot; + (Math.pow(x, 2) - y));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And, here&#39;s a preview of its output.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDkKdWo93QSqaLRCRHyQTTDfO2VnY34WMPWIGucGBYCKiUnxmp5X8kFv4M1G96cL18TXLTnAv949f3DpWnOPzN-62K8Yb_Wmz4neTxbcnN5rqg2AV3XbUSPeYi6-mP7X746KYGHU9MxXVi/s1600/java1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDkKdWo93QSqaLRCRHyQTTDfO2VnY34WMPWIGucGBYCKiUnxmp5X8kFv4M1G96cL18TXLTnAv949f3DpWnOPzN-62K8Yb_Wmz4neTxbcnN5rqg2AV3XbUSPeYi6-mP7X746KYGHU9MxXVi/s320/java1.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
As we can see, The answer doesn&#39;t match the one calculated in Visual Basic.&lt;br /&gt;
It is 2.516415E7.&lt;br /&gt;
&lt;br /&gt;
What is &lt;span style=&quot;color: orange;&quot;&gt;E&lt;/span&gt;? &lt;span style=&quot;color: orange;&quot;&gt;E&lt;/span&gt; is a representation of exponential values. Let&#39;s take the answer above as an example.&lt;br /&gt;
&lt;br /&gt;
We&#39;ve got 2.516415E7, what does that mean? It actually means multiplying 2.516415 by E7(which is mathematically written as 10^7). Therefore, the answer could be written as :&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: orange;&quot;&gt;&amp;nbsp;2.516415 x 10 ^ 7&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
which equals to&lt;span style=&quot;color: lime;&quot;&gt; 25164150&lt;/span&gt;, the correct answer.&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/2636362525877609871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/10/project-euler-problem-6-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2636362525877609871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2636362525877609871'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/10/project-euler-problem-6-java.html' title='Project Euler - Problem 6 (Java)'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDkKdWo93QSqaLRCRHyQTTDfO2VnY34WMPWIGucGBYCKiUnxmp5X8kFv4M1G96cL18TXLTnAv949f3DpWnOPzN-62K8Yb_Wmz4neTxbcnN5rqg2AV3XbUSPeYi6-mP7X746KYGHU9MxXVi/s72-c/java1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-5100594291694250537</id><published>2012-09-24T21:23:00.000+07:00</published><updated>2012-10-01T19:57:11.152+07:00</updated><title type='text'>Project Euler - Problem 6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
The sum of the squares of the first ten natural numbers is,&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
1&lt;sup&gt;2&lt;/sup&gt; + 2&lt;sup&gt;2&lt;/sup&gt; + ... + 10&lt;sup&gt;2&lt;/sup&gt; = 385&lt;/div&gt;
The square of the sum of the first ten natural numbers is,&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
(1 + 2 + ... + 10)&lt;sup&gt;2&lt;/sup&gt; = 55&lt;sup&gt;2&lt;/sup&gt; = 3025&lt;/div&gt;
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 &lt;span style=&quot;color: white;&quot;&gt;-&lt;/span&gt; 385 = 2640.&lt;br /&gt;
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.&lt;br /&gt;
&lt;br /&gt;
Answer:&lt;br /&gt;
This is a simple problem. Again, I&#39;m using VB.NET to solve this problem. But this time, it is not the Windows App, it&#39;s the Console Application. The reason is that we do not need any User Interface here.&lt;br /&gt;
&lt;br /&gt;
So, let&#39;s just get right to the code.&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;Module Module1&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sub Main()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim x, y As Double&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i As Integer = 1 To 100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = x + i&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For j As Integer = 1 To 100&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = y + (j ^ 2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Square of the sum of the first one hundred natural numbers : &quot; &amp;amp; x ^ 2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Sum of the squares of the first one hundred natural numbers : &quot; &amp;amp; y)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;Hence, the difference of both numbers is &quot; &amp;amp; (x ^ 2) &amp;amp; &quot; - &quot; &amp;amp; y &amp;amp; &quot; = &quot; &amp;amp; (x ^ 2) - y)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&lt;br /&gt;End Module&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white;&quot;&gt;Here&#39;s what it looks like :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL1Da8fz7X0ijJqAhHcDCZ6MplALCptd9gUqH9wGgyZnUDQpNIj_Cmij7REvIJ7ojMMty_tzyn2G3BhbdvtxvL2ZD1PWLGovAoQGZZGbO9T9Wcpc9ZRoYqkpBkes1w1OfNqlelE9xs10Ts/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL1Da8fz7X0ijJqAhHcDCZ6MplALCptd9gUqH9wGgyZnUDQpNIj_Cmij7REvIJ7ojMMty_tzyn2G3BhbdvtxvL2ZD1PWLGovAoQGZZGbO9T9Wcpc9ZRoYqkpBkes1w1OfNqlelE9xs10Ts/s320/1.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;From the picture above, we can see that the answer is &lt;span style=&quot;color: lime;&quot;&gt;25164150&lt;/span&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;Good luck trying !&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber&amp;nbsp; Frost&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/5100594291694250537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/09/project-euler-problem-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5100594291694250537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5100594291694250537'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/09/project-euler-problem-6.html' title='Project Euler - Problem 6'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL1Da8fz7X0ijJqAhHcDCZ6MplALCptd9gUqH9wGgyZnUDQpNIj_Cmij7REvIJ7ojMMty_tzyn2G3BhbdvtxvL2ZD1PWLGovAoQGZZGbO9T9Wcpc9ZRoYqkpBkes1w1OfNqlelE9xs10Ts/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-8488311507491421896</id><published>2012-09-23T11:34:00.000+07:00</published><updated>2012-09-23T11:34:30.480+07:00</updated><title type='text'>Project Euler - Problem 28</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:&lt;br /&gt;

&lt;div style=&quot;font-family: courier new; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;21&lt;/b&gt;&lt;/span&gt; 22 23 24 &lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;25&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
20 &amp;nbsp;&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;7&lt;/b&gt;&lt;/span&gt; &amp;nbsp;8 &amp;nbsp;&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;9&lt;/b&gt;&lt;/span&gt; 10&lt;br /&gt;
19 &amp;nbsp;6 &amp;nbsp;&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt; &amp;nbsp;2 11&lt;br /&gt;
18 &amp;nbsp;&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;5&lt;/b&gt;&lt;/span&gt; &amp;nbsp;4 &amp;nbsp;&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;3&lt;/b&gt;&lt;/span&gt; 12&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;17&lt;/b&gt;&lt;/span&gt; 16 15 14 &lt;span style=&quot;color: red; font-family: courier new;&quot;&gt;&lt;b&gt;13&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: courier new; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
It can be verified that the sum of the numbers on the diagonals is 101.&lt;br /&gt;

What is the sum of the numbers on the diagonals in a 1001 by 1001 spiral formed in the same way?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To solve this problem, I used VB.NET. Here are the design and the code.&lt;br /&gt;
&lt;br /&gt;
Design:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisUj98ecBecO0rUvfMyaO586CNqsvPn6Uhaw1ImO4z3e02NyU89a7o7aN9rGEa_L1C1UDBD7tYD6fcGnNDSgMAc-RyJacJYuUfCF_Ie2BZlo9c_ttkGLq48BMbo_eMY51ewHxuBehRfznZ/s1600/281.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisUj98ecBecO0rUvfMyaO586CNqsvPn6Uhaw1ImO4z3e02NyU89a7o7aN9rGEa_L1C1UDBD7tYD6fcGnNDSgMAc-RyJacJYuUfCF_Ie2BZlo9c_ttkGLq48BMbo_eMY51ewHxuBehRfznZ/s320/281.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It consists of 1 Textbox, 1 Label, and 1 Button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;Public Class Form1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim x, y, z, a, b, c As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim num As Double&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = TextBox1.Text&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If x &amp;gt; 0 And x Mod 2 = 1 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For a = 1 To x * 2 - 2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = 2 * c&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z = z + y&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num = num + z&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = b + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If b = 4 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = c + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(&quot;Spiral must be of odd size and has a minimum size of 1.&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label1.Text = num + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;Explanation:&lt;br /&gt;
&lt;br /&gt;
The Textbox receives the size of the spiral.&lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
Note that the size must be an odd number starting from the minimum of 1.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
The sum of the numbers on the diagonals will be shown in the Label.&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
Answer to PROBLEM 28 of Project Euler :&lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
The sum of the numbers on the diagonals in a 1001 by 1001 spiral formed in the same way is&amp;nbsp; &lt;span style=&quot;color: lime;&quot;&gt;669171001&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIF8D3wwVN8amIGNdq1uM4lAQ5Q0OYuIUDjJfJJKtxRlWWY3MBWcNvAXk4guFkw7qWm96CTBhOL7lrf1uxpbr7gGP9VUR6jNWRy4VnZ2KJg7_PHObSI3zE7BeOh1AWr_3naztY93bKhKXA/s1600/282.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIF8D3wwVN8amIGNdq1uM4lAQ5Q0OYuIUDjJfJJKtxRlWWY3MBWcNvAXk4guFkw7qWm96CTBhOL7lrf1uxpbr7gGP9VUR6jNWRy4VnZ2KJg7_PHObSI3zE7BeOh1AWr_3naztY93bKhKXA/s1600/282.JPG&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Happy Coding !&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/b&gt; &lt;/div&gt;
&lt;div class=&quot;problem_content&quot; role=&quot;problem&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/8488311507491421896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/09/project-euler-problem-28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8488311507491421896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8488311507491421896'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/09/project-euler-problem-28.html' title='Project Euler - Problem 28'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisUj98ecBecO0rUvfMyaO586CNqsvPn6Uhaw1ImO4z3e02NyU89a7o7aN9rGEa_L1C1UDBD7tYD6fcGnNDSgMAc-RyJacJYuUfCF_Ie2BZlo9c_ttkGLq48BMbo_eMY51ewHxuBehRfznZ/s72-c/281.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-7062412559898773175</id><published>2012-09-23T11:08:00.000+07:00</published><updated>2012-09-23T11:08:37.891+07:00</updated><title type='text'>VB.NET - PROGRAM 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Name : Text Transport&lt;br /&gt;
Difficulty : Very Easy&lt;br /&gt;
&lt;br /&gt;
Today, I will show you how to make a program which transports the text input in the Textbox into a Label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First of all, create a new Windows Application Project.&lt;br /&gt;
&lt;br /&gt;An empty form will show.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy_Ab-QoCrEJJKAgMe-pT4M19tj1f8WiMz182RhVxCVZsheR5z_-3arXxM7hYsVyTVyamvTi3eTpAvzEkGq9mpKWHM1ugTFp0MKSM5-55wFlUgDySZo5YCvW7_Icmck2-sRbUMnpws_op5/s1600/frm.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy_Ab-QoCrEJJKAgMe-pT4M19tj1f8WiMz182RhVxCVZsheR5z_-3arXxM7hYsVyTVyamvTi3eTpAvzEkGq9mpKWHM1ugTFp0MKSM5-55wFlUgDySZo5YCvW7_Icmck2-sRbUMnpws_op5/s320/frm.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;Now, drag a Textbox, a Label, and a Button from the toolbox on the left. It will look somewhat like this :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKVq0Bez6pjyFJvSGoTf6IvjAJIMQbi8DYi0OHxHDQntt3Mmwp5kV1aOKnXd61E0eXeMYSeV5KOXEXz2P1hEmG8zHIs7RTTgV-6TKsE0c9Y2IaObwOXQCzgpd1NXxUVmkuubXmUUPzqVAk/s1600/frm1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKVq0Bez6pjyFJvSGoTf6IvjAJIMQbi8DYi0OHxHDQntt3Mmwp5kV1aOKnXd61E0eXeMYSeV5KOXEXz2P1hEmG8zHIs7RTTgV-6TKsE0c9Y2IaObwOXQCzgpd1NXxUVmkuubXmUUPzqVAk/s320/frm1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click once on the Form. Change its &quot;Text&quot; Property to : &lt;span style=&quot;color: red;&quot;&gt;Text Transport&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;If you do not know already, the properties box is located on the lower right of your VB.NET screen.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;Click once on the Button and change its &quot;Text&quot; Property to :&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Transport&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;Click once on the Label and clear its &quot;Text&quot; Property.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;It will now look like this :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO_ktmmOdqFCoTWDhdykE0yZaVzp2iNVcRfSEbDF18XDsg5tSO7FD2xuhTAbh0tXWzZAlL7ltF-L1aSyRbvOAEWb_l22UfyZc7LZmnqqAKYvEnS8JDzrfrQX3JtpvWCNcJW5WtFLCpydUm/s1600/frm2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO_ktmmOdqFCoTWDhdykE0yZaVzp2iNVcRfSEbDF18XDsg5tSO7FD2xuhTAbh0tXWzZAlL7ltF-L1aSyRbvOAEWb_l22UfyZc7LZmnqqAKYvEnS8JDzrfrQX3JtpvWCNcJW5WtFLCpydUm/s320/frm2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;Here comes the fun part, coding.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;Simply right click on the form and choose &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;View Code&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;Now, you should be in the code editor.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;All you have to do is copy this code and paste it into your code editor:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Public Class Form1&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label1.Text = TextBox1.Text&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&lt;br /&gt;End Class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;Next, run the program by pressing F5 or clicking the green play button on the top.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;A window will show, you may type anything into the textbox (for example : ABC) and then clicking on the Transport button. The text on the Textbox (which is ABC) will be copied onto the Label which indicates that you are successful.&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnXLAyZWIq2ySTb1T3xEtKSqE0HQGMFAWRo4ZKQsATmwF3pUbBZX1d6YrLDXWtaUlJGNBgiTMszXo-2ejZXk3SrjJsMRXd1kCwTxmNVEk6g29uJDjqnqJc-ZAzViag7_URRRwTZD4OhVzr/s1600/frm3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnXLAyZWIq2ySTb1T3xEtKSqE0HQGMFAWRo4ZKQsATmwF3pUbBZX1d6YrLDXWtaUlJGNBgiTMszXo-2ejZXk3SrjJsMRXd1kCwTxmNVEk6g29uJDjqnqJc-ZAzViag7_URRRwTZD4OhVzr/s320/frm3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding !&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Cyber Frost&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/7062412559898773175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/09/vbnet-program-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/7062412559898773175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/7062412559898773175'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/09/vbnet-program-1.html' title='VB.NET - PROGRAM 1'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy_Ab-QoCrEJJKAgMe-pT4M19tj1f8WiMz182RhVxCVZsheR5z_-3arXxM7hYsVyTVyamvTi3eTpAvzEkGq9mpKWHM1ugTFp0MKSM5-55wFlUgDySZo5YCvW7_Icmck2-sRbUMnpws_op5/s72-c/frm.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-8981994978958660</id><published>2012-06-02T19:13:00.002+07:00</published><updated>2012-06-02T19:13:43.212+07:00</updated><title type='text'>Apology</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I would like to apologize for not writing for a long time.&lt;br /&gt;
It was merely because I was bombarded with tasks and exams.&lt;br /&gt;
As I have long stopped writing and researching about computing matters, I am still in search of inspiration.&lt;br /&gt;
Meanwhile, I would like to share an extremely useful link.&lt;br /&gt;
&lt;br /&gt;
Here it is : &lt;a href=&quot;http://home.mcafee.com/virusinfo&quot;&gt;http://home.mcafee.com/virusinfo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It is by far the most complete virus database which provides information on the most recent computer viruses, its description, indications of infection, methods of infection, virus characteristics, and even the removal instructions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope it helps&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Cyber Frost&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/8981994978958660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/06/apology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8981994978958660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8981994978958660'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2012/06/apology.html' title='Apology'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-1636002007078152114</id><published>2011-09-03T15:00:00.002+07:00</published><updated>2011-09-03T15:05:20.016+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer Protection"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer Security"/><category scheme="http://www.blogger.com/atom/ns#" term="Hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Batch Programming"/><title type='text'>Blue Screen Of Death (BSOD)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;A Blue Screen Of Death, or officially known as the &lt;b&gt;STOP Error&lt;/b&gt; is a system crash happening due to hardware or driver(software) errors. A &lt;b&gt;STOP Error&lt;/b&gt; can also be caused by a critical boot loader error, where  the operating system is unable to start from the bootable drive due to  the presence of an incorrect disk driver, a damaged file system, or a similar problem.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPBr2kXaZ5YMYmOX64B3-I09hOdENpM9sxGfTyOjynMdZ7b3UUhv_molFQFIBgJuziMDxgY8T9BtGcGI2HSWAJ5c1ZUk3bioE35wuipfI9RaJSV9BVFsGxz4xpc2-j8ZRIc_jTkvPxql6T/s1600/bsod.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPBr2kXaZ5YMYmOX64B3-I09hOdENpM9sxGfTyOjynMdZ7b3UUhv_molFQFIBgJuziMDxgY8T9BtGcGI2HSWAJ5c1ZUk3bioE35wuipfI9RaJSV9BVFsGxz4xpc2-j8ZRIc_jTkvPxql6T/s400/bsod.gif&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The Blue Screen of Death&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
While it may seem odd to think about purposefully causing a Blue Screen  Of Death (BSOD), Microsoft includes such a provision in Windows XP (Vista also). This  might come in handy for testing and troubleshooting your Startup And  Recovery settings, Event logging, and for demonstration purposes.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s how to create a BSOD: &lt;br /&gt;
&lt;br /&gt;
Launch the Registry Editor (Regedit.exe). &lt;br /&gt;
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters. &lt;br /&gt;
Go to Edit, select New | DWORD Value and name the new value CrashOnCtrlScroll. &lt;br /&gt;
Double-click the CrashOnCtrlScroll DWORD Value, type 1 in the Value Data textbox, and click OK. &lt;br /&gt;
Close the Registry Editor and restart Windows XP.&lt;br /&gt;
When you want to cause a BSOD, press and hold down the [Ctrl] key on the  right side of your keyboard, and then tap the [ScrollLock] key twice.  Now you should see the BSOD.&lt;br /&gt;
&lt;br /&gt;
If your system reboots instead of displaying the BSOD, you&#39;ll have to disable the Automatically&lt;br /&gt;
Restart setting in the System Properties dialog box. To do so, follow these steps:&lt;br /&gt;
&lt;br /&gt;
Press [Windows]-Break.  &lt;br /&gt;
Select the Advanced tab. &lt;br /&gt;
Click the Settings button in the Startup And Recovery panel.&lt;br /&gt;
Clear the Automatically Restart check box in the System Failure panel. &lt;br /&gt;
Click OK twice. &lt;br /&gt;
&lt;br /&gt;
Here&#39;s how you remove the BSOD configuration:&lt;br /&gt;
&lt;br /&gt;
Launch the Registry Editor (Regedit.exe).  &lt;br /&gt;
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters. &lt;br /&gt;
Select the CrashOnCtrlScroll value, pull down the Edit menu, and select the Delete command. &lt;br /&gt;
Close the Registry Editor and restart Windows XP. &lt;br /&gt;
Note: Editing the registry is risky, so make sure you have a verified backup before making any changes.&lt;br /&gt;
&lt;br /&gt;
Additional Note on the steps provided to create a BSOD :&lt;br /&gt;
Hackers can make use of this trick to crash your computer over and over again by simply creating a .vbs or .bat file which will change the values in the Registry, and then pressing the keys needed automatically.&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
-&lt;a href=&quot;http://en.wikipedia.org/wiki/Blue_Screen_of_Death&quot;&gt;http://en.wikipedia.org/wiki/Blue_Screen_of_Death&lt;/a&gt;&lt;br /&gt;
-&lt;a href=&quot;http://psacake.com/web/jr.asp&quot;&gt;http://psacake.com/web/jr.asp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Fixing the BSOD : &lt;a href=&quot;http://support.microsoft.com/kb/958233&quot;&gt;http://support.microsoft.com/kb/958233&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you for reading.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/1636002007078152114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/09/blue-screen-of-death-bsod.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/1636002007078152114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/1636002007078152114'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/09/blue-screen-of-death-bsod.html' title='Blue Screen Of Death (BSOD)'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPBr2kXaZ5YMYmOX64B3-I09hOdENpM9sxGfTyOjynMdZ7b3UUhv_molFQFIBgJuziMDxgY8T9BtGcGI2HSWAJ5c1ZUk3bioE35wuipfI9RaJSV9BVFsGxz4xpc2-j8ZRIc_jTkvPxql6T/s72-c/bsod.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-2878529852490031978</id><published>2011-08-02T11:40:00.004+07:00</published><updated>2011-08-02T11:56:41.673+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Antivirus"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer Protection"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer Security"/><category scheme="http://www.blogger.com/atom/ns#" term="Virus"/><title type='text'>Types of Computer Viruses</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;b&gt;Bootsector Virus: &lt;/b&gt; &lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;A virus which attaches itself to the first part of the hard disk that is  read by the computer upon bootup. These are normally spread by floppy  disks.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Note: Floppy disks are kind of outdated, so, perhaps, it&#39;s spread through portable hard disks or boot CDs. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;b&gt;Macro Virus:&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Macro viruses are viruses that use another application&#39;s macro programming language to distribute themselves. &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;They infect documents such as MS Word or MS Excel and are typically spread to other similar documents.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;This is a nightmare to every office workers. Once your computer is infected, your whole documents will be destroyed. So, always do backups!&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;color: red;&quot;&gt;Memory Resident Viruses:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Memory Resident Viruses reside in a computers volitale memory (RAM).  They are initiated from a virus which runs on the computer and they stay  in memory after it&#39;s initiating program closes. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-size: small;&quot;&gt;Rootkit Virus: &lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;A rootkit virus is an undetectable virus which attempts to  allow someone to gain control of a computer system. The term rootkit  comes from the linux administrator root user. These viruses are usually  installed by trojans and are normally disguised as operating system  files. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: small;&quot;&gt;&lt;b&gt;Polymorphic Viruses: &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Well, poly means many and morph means form. So, this type of virus will replicate itself into many forms of file. Now, you might see it as a .pdf file. Next time you log in, it might have changed itself into a .dll file. It is extremely difficult to detect manually. Even some antivirus might miss it while scanning for viruses.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-size: small;&quot;&gt;Logic Bombs/Time Bombs: &lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;These are viruses which are programmed to initiate at a  specific date or when a specific event occurs. Some examples are a virus  which deletes your photos on Halloween, or a virus which deletes a  database table if a certain employee gets fired.&lt;br /&gt;
&lt;br /&gt;
This is my favorite type of virus, it is completely unpredictable, only the coder of the virus knows what will happen and when it will happen.&lt;br /&gt;
&lt;a href=&quot;http://cyberfrost-computing.blogspot.com/2011/03/deep-freeze-vs-antiviruses.html&quot;&gt;DeepFreeze&lt;/a&gt; might be able to counter this type of virus.&lt;br /&gt;
&lt;br /&gt;
&lt;u style=&quot;color: lime;&quot;&gt;Important Note:&lt;/u&gt;&lt;br /&gt;
Knowing that viruses have a very big effect on your computer, you might want to update your firewalls and antivirus for protection. Everyday, hundreds(maybe thousands) of new viruses are made, with even more creative ways of infecting and surviving.&lt;br /&gt;
&lt;br /&gt;
So, always keep your antivirus and firewalls up-to-date. However, do not get trapped by those fake antivirus providers. Only use trusted antivirus brands, such as Avira, Norton, AVG(Grisoft), and NOD32.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for reading.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/2878529852490031978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/08/types-of-computer-viruses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2878529852490031978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2878529852490031978'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/08/types-of-computer-viruses.html' title='Types of Computer Viruses'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-708467072234882176</id><published>2011-07-31T18:58:00.001+07:00</published><updated>2011-07-31T19:02:46.707+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Security"/><category scheme="http://www.blogger.com/atom/ns#" term="Malware"/><category scheme="http://www.blogger.com/atom/ns#" term="Spyware"/><category scheme="http://www.blogger.com/atom/ns#" term="Virus"/><title type='text'>The Difference Between a Virus, a Worm, and a Trojan Horse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Viruses, worms and Trojan Horses are all malicious programs that  can cause damage to your computer, but there are differences among the  three.&lt;/span&gt;&lt;/h2&gt;One common mistake that people make when the topic of a computer virus arises is to refer to a worm or Trojan horse as a virus.  While the words Trojan, worm and virus are often used interchangeably,  they are not exactly the same  thing. Viruses, worms and Trojan Horses  are all malicious programs that can cause damage to your  computer,  but there are differences among the three, and knowing those  differences can help you better protect your computer from their often  damaging effects.&lt;br /&gt;
&lt;h2&gt;What Is a Virus?&lt;/h2&gt;A computer virus attaches itself to a program or file  enabling it to spread from one computer to another, leaving infections  as it travels. Like a human virus, a computer virus can range in  severity: some may cause only mildly annoying effects while others can  damage your hardware, software or files. Almost all viruses are attached to an executable file,  which means the virus may exist on your computer but it actually cannot  infect your computer unless you run or open the malicious program. It  is important to note that a virus cannot be spread without a human  action, (such as running an infected program) to keep it going.&amp;nbsp;Because   a virus is spread by human action people will unknowingly continue the  spread of a computer virus by sharing infecting files or sending emails with viruses as attachments in the email.&lt;br /&gt;
&lt;h2&gt;What Is a Worm?&lt;/h2&gt;A worm is similar to a virus by design and is considered to be a  sub-class of a virus. Worms spread from computer to computer, but unlike  a virus, it has the capability to travel without any human action. A  worm takes advantage of file or information transport features on your  system, which is what allows it to travel unaided.&lt;br /&gt;
The biggest danger with a worm is its capability to replicate itself  on your system, so rather than your computer sending out a single worm,  it could send out hundreds or thousands of copies of itself, creating a  huge devastating effect. One example would be for a worm to send a copy  of itself to everyone listed in your e-mail address book. Then, the worm  replicates and sends itself out to everyone listed in each of the  receiver&#39;s address book, and the manifest continues on down the line.&lt;br /&gt;
Due to the copying nature of a worm and its capability to travel  across networks the end result in most cases is that the worm consumes  too much  system memory (or  network bandwidth), causing Web servers,  network servers and individual computers to stop responding. In recent  worm attacks such as the much-talked-about Blaster Worm, the worm has  been designed to tunnel into your system and allow malicious users to  control your computer remotely.&lt;br /&gt;
&lt;h2&gt;What Is a Trojan horse?&lt;/h2&gt;A Trojan Horse is full of as much trickery as the mythological Trojan  Horse it was named after. The Trojan Horse, at first glance will appear  to be useful software  but will actually do damage once installed or run on your computer.&amp;nbsp;  Those on the receiving end of a Trojan Horse are usually tricked into  opening them because they appear to be receiving legitimate software or  files from a legitimate source.&amp;nbsp; When a Trojan is activated on your  computer, the results can vary. Some Trojans are designed to be more  annoying than malicious (like changing your desktop,  adding silly active desktop icons) or they can cause serious damage by  deleting files and destroying information on your system. Trojans are  also known to create a backdoor  on your computer that gives malicious users access to your system,  possibly allowing confidential or personal information to be  compromised. Unlike viruses and worms, Trojans do not reproduce by  infecting other files nor do they self-replicate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: http://www.webopedia.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/708467072234882176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/07/difference-between-virus-worm-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/708467072234882176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/708467072234882176'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/07/difference-between-virus-worm-and.html' title='The Difference Between a Virus, a Worm, and a Trojan Horse'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-4017353272426668745</id><published>2011-06-15T23:56:00.000+07:00</published><updated>2011-06-15T23:56:50.432+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Security"/><title type='text'>Discrete Mathematics - Unconscious  Information Transfer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh32qidwHiLYbCt34aBuOzIgA_PZPcSLrZ_VGxrR0YhMhCanxOk82dxp86mS1gtyU1rO31ILjYivRfA2K1lqEyPf3yZQQQ0Lt4gTULoxEFsyQm_ilEgcKd-02qws_U_hS84utaAkwn7S4jv/s1600/abcd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh32qidwHiLYbCt34aBuOzIgA_PZPcSLrZ_VGxrR0YhMhCanxOk82dxp86mS1gtyU1rO31ILjYivRfA2K1lqEyPf3yZQQQ0Lt4gTULoxEFsyQm_ilEgcKd-02qws_U_hS84utaAkwn7S4jv/s400/abcd.JPG&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;On the top, you can see 4 cards labelled ABCD. Now, pick a whole number ranging from 0-15.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Got it?&amp;nbsp; Yes.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Is it on card A? Yes.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Is it on card B? No.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Is it on card C? No.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Is it on card D? Yes.&lt;/div&gt;&lt;br /&gt;
The number you picked is 9.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, look back at the cards, try to figure out how I found out your number.&lt;br /&gt;
&lt;br /&gt;
Figured it out yet?&lt;br /&gt;
No?&lt;br /&gt;
&lt;br /&gt;
This is how it works:&lt;br /&gt;
1. Player picks one number between 0-15.&lt;br /&gt;
2. The number is on card A.&lt;br /&gt;
3. The number is not on card B.&lt;br /&gt;
4. The number is not on card C.&lt;br /&gt;
5. The number is on card D.&lt;br /&gt;
&lt;br /&gt;
Okay, now that I have written all the clues I have, how can those clues help??&lt;br /&gt;
&lt;br /&gt;
Clue number 1 : The number is between 0-15 (16 possibilities).&lt;br /&gt;
Clue number 2 : The number is on card A (8 possibilities left, since there are only 8 numbers on card A. Zero is also eliminated since it&#39;s not on card A).&lt;br /&gt;
Clue number 3 : The number is not on card B (Eliminate all numbers on card B[4,5,6,7,12,13,14,15]).&lt;br /&gt;
Clue number 4 : The number is not on card C (Eliminate all numbers on card C[2,3,6,7,10,11,14,15]).&lt;br /&gt;
Numbers Eliminated : 0,2,3,4,5,6,7,10,11,12,13,14,15&lt;br /&gt;
Numbers Left : 1, 8, 9&lt;br /&gt;
Clue number 5 : The&amp;nbsp; number is on card D.&lt;br /&gt;
&lt;br /&gt;
Conclusion : Find the number (from the &quot;numbers left&quot; list) that is on both card A and card D.&lt;br /&gt;
&lt;br /&gt;
It&#39;s 9. That&#39;s how it actually works.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;So, what is the relation between this game and computer security?&lt;/b&gt;&lt;br /&gt;
As you can see, from 4 simple yes/no answers, we can get so much information, enough to guess(or in the victim&#39;s mind, &quot;PREDICT&quot;) his number.&lt;br /&gt;
&lt;br /&gt;
Therefore, you should think twice before answering any questions on the internet or elsewhere. It may lead to something harmful or dangerous, such as identity theft.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
There is another method that involves memorizing answers to predict/guess player&#39;s number quickly, as soon as he/she gives us his/her fourth answer. However, I will not include this here, since this post mainly focuses on Computer Security, not algorithms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you for reading.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Cyber Frost&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/4017353272426668745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/06/discrete-mathematics-unconscious.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/4017353272426668745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/4017353272426668745'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/06/discrete-mathematics-unconscious.html' title='Discrete Mathematics - Unconscious  Information Transfer'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh32qidwHiLYbCt34aBuOzIgA_PZPcSLrZ_VGxrR0YhMhCanxOk82dxp86mS1gtyU1rO31ILjYivRfA2K1lqEyPf3yZQQQ0Lt4gTULoxEFsyQm_ilEgcKd-02qws_U_hS84utaAkwn7S4jv/s72-c/abcd.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-8786805965875427024</id><published>2011-06-07T22:19:00.000+07:00</published><updated>2011-06-07T22:19:15.472+07:00</updated><title type='text'>E-Books Download Links Added</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I have added some programming e-book links for you to download. please go to the &lt;a href=&quot;http://cyberfrost-computing.blogspot.com/p/downloads.html&quot;&gt;download page&lt;/a&gt; for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/b&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/8786805965875427024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/06/e-books-download-links-added.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8786805965875427024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/8786805965875427024'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/06/e-books-download-links-added.html' title='E-Books Download Links Added'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-98146499139221623</id><published>2011-04-21T23:46:00.000+07:00</published><updated>2011-04-21T23:46:55.581+07:00</updated><title type='text'>An Adobe Flash CS5-Based Advertisement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;After a few days learning Adobe Flash, I created this simple advertisement.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;br /&gt;
&lt;embed height=&quot;220&quot; src=&quot;http://users.cjb.net/cyberfrost/cfrost5.swf&quot; width=&quot;336&quot;&gt;&lt;/embed&gt;&lt;br /&gt;
&lt;/center&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;b&gt;Why do we need Flash-based ads? &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
First of all, flash-based ads are likely to be moving, thus making it more attractive.&lt;br /&gt;
Secondly, you can embed it anywhere you want: on your blog, your friend&#39;s site, etc.&lt;br /&gt;
Last but not least, SWF(ShockWave Flash) videos are also quickly-loaded. Therefore, users won&#39;t have to wait long for your sites to load the video ads. &lt;br /&gt;
&lt;br /&gt;
Adding an &lt;i&gt;ad&lt;/i&gt; like this to your website will surely increase the site&#39;s traffic by bringing in more visitors, making your site rank better in search engines like Google.&lt;br /&gt;
&lt;br /&gt;
If you are interested in having one, simply drop a comment below or &lt;a href=&quot;mailto:cyberfrostprogrammer@yahoo.com&quot;&gt;send an email&lt;/a&gt; to me.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/98146499139221623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/adobe-flash-cs5-based-advertisement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/98146499139221623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/98146499139221623'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/adobe-flash-cs5-based-advertisement.html' title='An Adobe Flash CS5-Based Advertisement'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-3511979585536561498</id><published>2011-04-20T22:17:00.001+07:00</published><updated>2011-04-20T22:19:06.518+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CMD"/><category scheme="http://www.blogger.com/atom/ns#" term="Harddisk Optimization"/><title type='text'>Disk Defragmentation - Why and How?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Computer memory contains files. These files may be in the form of PDF, Word Document, Power Point Presentation, Application, and many others. As time flows, a user will add more files as well as delete some files. Adding and deleting files will cause the magnetic field in the hard disk to be unorganized. This is called &lt;b&gt;fragmentation&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Fragmentation &lt;/b&gt;is a state where a file is broken into pieces, thus making it harder(slower) to be accessed.&lt;br /&gt;
&lt;br /&gt;
Alright, let&#39;s assume that you are feeling that your files are in this state. What should you do to settle this?&lt;br /&gt;
&lt;br /&gt;
The answer is by doing &lt;b&gt;defragmentation.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Disk Defragmentation,&lt;/b&gt;&lt;b&gt; &lt;/b&gt;as its name said, is done to rearrange parts of broken files so that the files will be better-organized, enabling users to access the files more quickly.&lt;br /&gt;
&lt;br /&gt;
In Windows Operating System (XP or higher versions), you can easily defrag your hard disks by using the built-in Disk Defragmenter utility.&lt;br /&gt;
&lt;br /&gt;
Please note that I am using Windows Vista Ultimate, the steps may vary from other versions.&lt;br /&gt;
&lt;br /&gt;
There are three methods:&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;First Method&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Click Start&amp;gt;Accessories&amp;gt;System Tools&amp;gt;Disk Defragmenter&lt;/li&gt;
&lt;li&gt;A window like this will be brought up:&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0hp0MfnEHQdtrOKKq0rItOvAS3otuSMdkvH9sMPa2PXkd8uSy9FO7kIU1kxs6DeN1LM27S1aOFeF6XBYcIQYmkMTzHliwilZx5PyTjO9RMKOkk_oC4P8-KByctopDUVeatCD4hek3vrYS/s1600/def.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0hp0MfnEHQdtrOKKq0rItOvAS3otuSMdkvH9sMPa2PXkd8uSy9FO7kIU1kxs6DeN1LM27S1aOFeF6XBYcIQYmkMTzHliwilZx5PyTjO9RMKOkk_oC4P8-KByctopDUVeatCD4hek3vrYS/s400/def.JPG&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;li&gt;&amp;nbsp;Click the &quot;Defragment now&quot; button to proceed.&lt;/li&gt;
&lt;li&gt;Wait until the process completes. It may take minutes to hours, please be patient. It&#39;s worth waiting because after the defragmentation your files will be more organized and easier to access.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Second Method&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Click Start&amp;gt;Run&lt;/li&gt;
&lt;li&gt;Type in &quot;dfrgui.exe&quot; (without quotes)&lt;/li&gt;
&lt;li&gt;Click the &quot;Defragment now&quot; button.&lt;/li&gt;
&lt;li&gt;Wait for the process to complete.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;/ol&gt;&lt;u&gt;&lt;b&gt;Third Method&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Click Start&amp;gt;Run&lt;/li&gt;
&lt;li&gt;Type in &quot;cmd&quot; (without quotes)&lt;/li&gt;
&lt;li&gt;Type in &quot;defrag -c&quot;&lt;u&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&amp;nbsp; (without quotes) and press Enter.&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDsWrxsrJiri6XPwVAEHXn6Ol9pRWmZK36iSnVXUrjTDhV39op73dPGRuZJ_gS4DcA1nvIaQcut1nOH0lkHnc9EFi0JKAouG-hF98WEV90DkDNlgghMR4HnubSIxy5Bjzq3yPSGynzX5kQ/s1600/def2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDsWrxsrJiri6XPwVAEHXn6Ol9pRWmZK36iSnVXUrjTDhV39op73dPGRuZJ_gS4DcA1nvIaQcut1nOH0lkHnc9EFi0JKAouG-hF98WEV90DkDNlgghMR4HnubSIxy5Bjzq3yPSGynzX5kQ/s400/def2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;li&gt;Wait for the defragmentation to finish.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
You should defragment your computer at least every 4-6 months to keep your computer in good state.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you for reading. Hope this helps.&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Cyber Frost&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/3511979585536561498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/disk-defragmentation-why-and-how.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/3511979585536561498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/3511979585536561498'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/disk-defragmentation-why-and-how.html' title='Disk Defragmentation - Why and How?'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0hp0MfnEHQdtrOKKq0rItOvAS3otuSMdkvH9sMPa2PXkd8uSy9FO7kIU1kxs6DeN1LM27S1aOFeF6XBYcIQYmkMTzHliwilZx5PyTjO9RMKOkk_oC4P8-KByctopDUVeatCD4hek3vrYS/s72-c/def.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-2217682670758056362</id><published>2011-04-19T00:00:00.001+07:00</published><updated>2011-04-19T23:16:01.114+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><title type='text'>Color Changing Text Animation with Flash</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here&#39;s my second animation. It changes the color of the text as it moves.&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;br /&gt;
&lt;embed height=&quot;120&quot; src=&quot;http://users.cjb.net/cyberfrost/cfrost2.swf&quot; width=&quot;400&quot;&gt;&lt;/embed&gt;&lt;br /&gt;
&lt;/center&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;More will be posted. In the meanwhile, enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Cyber Frost&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/2217682670758056362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/color-changing-text-animation-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2217682670758056362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/2217682670758056362'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/color-changing-text-animation-with.html' title='Color Changing Text Animation with Flash'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-3496309465923637205</id><published>2011-04-18T22:39:00.000+07:00</published><updated>2011-04-18T22:39:15.027+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><title type='text'>My First Flash Animation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I&#39;m currently learning Adobe Flash CS5 Professional now. Here is my first flash text animation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;br /&gt;
&lt;embed height=&quot;150&quot; src=&quot;http://users.cjb.net/cyberfrost/cfrost.swf&quot; width=&quot;250&quot;&gt;&lt;/embed&gt;&lt;br /&gt;
&lt;/center&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;It&#39;s still a simple one. Well, not bad for a first try anyway.&lt;br /&gt;
&lt;br /&gt;
I will be posting more to inspire you all.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Cyber Frost&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/3496309465923637205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/my-first-flash-animation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/3496309465923637205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/3496309465923637205'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/my-first-flash-animation.html' title='My First Flash Animation'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7194050342190204916.post-5852059231802401391</id><published>2011-04-17T19:05:00.002+07:00</published><updated>2011-04-18T08:44:44.071+07:00</updated><title type='text'>Why Would One Become a Programmer?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;A computer programmer is an extremely interesting job to do, especially if you like to learn new things and expand your knowledge over many field of studies in a fun way.&lt;br /&gt;
&lt;br /&gt;
Programmers will learn many things as they create sellable programs or source codes.&lt;br /&gt;
&lt;br /&gt;
Let me explain to you using an example:&lt;br /&gt;
A programmer is offered a project in making an accounting program which will help in making reports, calculating annual income, etc.&lt;br /&gt;
In order to successfully build this program, he will need to learn:&lt;br /&gt;
-Programming Languages(C, C++, HTML, VB.NET, Java, etc.)&lt;br /&gt;
-Accounting Basics&lt;br /&gt;
-Program Design Techniques&lt;br /&gt;
-Languages, in which the User Interface will be written.&lt;br /&gt;
&lt;br /&gt;
So, besides earning money from the project, he will get some new experience with his programming skills, know the basics of accounting, have a better design skill as he creates more softwares, and improve himself in language usage.&lt;br /&gt;
&lt;br /&gt;
See? There are tons of benefits to work as a programmer.&lt;br /&gt;
&lt;br /&gt;
Some other advantages of being a programmer are:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-Easy Money&lt;/b&gt;&lt;br /&gt;
It is the era of computerization. Every company will soon use softwares&amp;nbsp; + IT Staffs instead of accountants, shopkeepers, architects, etc.&lt;br /&gt;
You must take an advantage of this, begin learning how to do programming now.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-Not Place-Dependent&lt;/b&gt;&lt;br /&gt;
A programmer can do his project anywhere with his laptop and a charger(perhaps with a modem, too.)&lt;br /&gt;
He doesn&#39;t have to stay in the office sitting for no reason. He can enjoy a cup of coffee in a mall while thinking about his projects.&lt;br /&gt;
&lt;br /&gt;
Despite the benefits offered, there are of course some drawbacks, too, which are:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-Finding Projects&lt;/b&gt;&lt;br /&gt;
Projects don&#39;t come to you, you must search for them. You can do so by advertising on the internet, telling your friends about your products in social networking services such as Facebook, Twitter, etc., or simply tell your mates in a daily conversation.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;-Time Consuming&lt;/b&gt;&lt;br /&gt;
Programming is time-consuming, especially for newbies. Therefore, prepare to lose some hours of sleep. You can repay those lost hours later when you have free time. Exercise when you have time to keep yourself fit. You don&#39;t want to get sick, because projects don&#39;t wait.&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It&#39;s really beneficial to have computer skills in this era of computerization, everything is in process of being computerized, sooner or later employers will require you to have computer skills in order to work in his/her company. The best time to start is now.&lt;br /&gt;
I can guarantee you, you will not regret excelling in many fields of study and earning much money making some creative applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you for reading. &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Cyber Frost&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cyberfrost-computing.blogspot.com/feeds/5852059231802401391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/why-would-one-become-programmer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5852059231802401391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7194050342190204916/posts/default/5852059231802401391'/><link rel='alternate' type='text/html' href='http://cyberfrost-computing.blogspot.com/2011/04/why-would-one-become-programmer.html' title='Why Would One Become a Programmer?'/><author><name>Cyber Frost</name><uri>http://www.blogger.com/profile/05870232682503246867</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72KvhsXSQu_NCk52U8myr20NkaIFkMiLQpGk4Y2cFa4w_VtDSq1QGF2LsX3ZK5ebISesCTd2cJNPAfGkp9XlI-CnG1s7qFFw2Mt-BzEFpGq4njDptl-0pKrbHavnAYcI/s220/images.jpg'/></author><thr:total>0</thr:total></entry></feed>