<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6328167788949649369</id><updated>2011-04-21T20:42:41.515-07:00</updated><title type='text'>CIEFFEATHO</title><subtitle type='html'>Learnings Of The Week...!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default?start-index=101&amp;max-results=100'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>124</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8397482353418790776</id><published>2009-12-07T19:05:00.000-08:00</published><updated>2009-12-07T19:05:00.291-08:00</updated><title type='text'>Learnings Dec. 1- Jan.5  (lorebeth betinol)</title><content type='html'>WE have no class!! Becausse its teachers day. There is  a Teachers dance contest at the Tagum City Pavilion.&lt;br /&gt;&lt;br /&gt;But some of our classmates is task to report  about iterative statements..&lt;br /&gt;&lt;br /&gt;Here....&lt;br /&gt;&lt;br /&gt;&lt;a name="Loops"&gt;Iterative Statements&lt;/a&gt;Iterative statements, commonly referred to as looping statements, involve executing a series of statements zero or more times. We will discuss two specific shell looping statements, the while loop and the for loop.&lt;br /&gt;The while loop executes the statement block enclosed within zero or more times as long as the boolean condition (or command) evaluates to TRUE (which again means returns a zero exit status). The general syntax of the while loop is: while boolean_condition&lt;br /&gt;do&lt;br /&gt;statement&lt;br /&gt;optional statement(s)&lt;br /&gt;done&lt;br /&gt;As with the if-then statement, the boolean_condition is usually (but not always) evaluated using the test command. Note also that the body of the while is enclosed with the do-done statements. Thus if we wanted to find a sum of the numbers between 1 and 5, we could do this with the following while loop: COUNT=1&lt;br /&gt;SUM=0&lt;br /&gt;while [ "$COUNT" -le 5 ]&lt;br /&gt;do&lt;br /&gt;SUM=`expr $SUM + $COUNT` # or SUM=$(( SUM + COUNT ))&lt;br /&gt;COUNT=`expr $COUNT + 1`&lt;br /&gt;done&lt;br /&gt;Note the double quotes surrounding the COUNT variable; these are to make sure this variable is seen by test, even if it has no value, to avoid any errors (as described above). Always keep in mind when coding looping statements that a condition must occur to terminate the loop, otherwise an infinite looping condition occurs. Incrementing the variable COUNT by 1 in this cases causes the value of COUNT to eventually reach 6 causing the loop to terminate. As with the if-then scenario described above, the while-do structure can be written as follows if desired: while [ "$COUNT" -le 5 ] ; do Another looping statement worth of discussion here is the for statement. While many modern languages have for statements, the for statement in the shell is a little different. The general syntax is as follows: for VARIABLE in list&lt;br /&gt;do&lt;br /&gt;statement&lt;br /&gt;optional statement(s)&lt;br /&gt;done&lt;br /&gt;Unlike the while statement, a for statement doesn't terminate based upon a condition, rather it terminates when all items in the list have been "processed." The concept of a list was first introduced with the discussion regarding special environment variables. A list is a grouping of data items, sometimes referred to as words, since they are separated by spaces. A list may have zero items, a few items, or a large number of items. A list (with more than one item) will have a beginning item (the leftmost) and an ending item (the rightmost). The items in the list can be strings, variables, files, etc.&lt;br /&gt;When a for loop executes for the first time, the VARIABLE will be assigned the first (leftmost) item in the list. During each subsequent iteration of the loop, the variable will be assigned the next item in the list. Thus when all items in the list have been assigned to the variable, the loop terminates. Refer to the following example: The variable name in this example is VALUE, and the list is composed of the 3 items (or words) "fred", "barney", and "dino." Thus when this loop executes, the following is the output: VALUE: fred VALUE: barney VALUE: dinoNotice there are 3 items in the list and the body of the loop executes 3 times. Thus for a list of size n, the body of a for loop will execute n times. Lists in for loops can be specified a number of ways, for example:&lt;br /&gt;list&lt;br /&gt;represents&lt;br /&gt; item1 item2 ... itemn&lt;br /&gt;a list of n items&lt;br /&gt; $1 $2 $3&lt;br /&gt;a list of 3 command line parameters&lt;br /&gt; $*&lt;br /&gt;a list of all command line parameters&lt;br /&gt; *&lt;br /&gt;a list of all files in current directory&lt;br /&gt; a*&lt;br /&gt;a list of all files starting with the letter aFor loops are typically used to process a quantity of things, for example, renaming all of the files in a directory by appending an extension of .backup (to indicate a backup copy) to their filename. As with the other scenarios described above, the for can be written as follows if one prefers: for VARIABLE in list ; do&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8397482353418790776?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8397482353418790776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8397482353418790776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8397482353418790776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8397482353418790776'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/12/learnings-dec-1-jan5-lorebeth-betinol.html' title='Learnings Dec. 1- Jan.5  (lorebeth betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5098218363362900981</id><published>2009-02-28T19:22:00.000-08:00</published><updated>2009-03-01T19:28:36.359-08:00</updated><title type='text'></title><content type='html'>Learnings of the Week(Feb.23-27)&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;This week, we were told about our new projects to be done. Group 6-10 were assigned to make an HTML about TCNHS(Tagum City National High School), while, WE,&lt;br /&gt;Group 1-5 were assigned to make a program interfacing AC Load, Push Buttons and LED. Fortunately, some of the Group 1-4 members are helping us in making our assigned project about interfacing wth LED. However, Sir Ernie is checking the progress of our project everyday.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5098218363362900981?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5098218363362900981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5098218363362900981' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5098218363362900981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5098218363362900981'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-weekfeb_28.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3106267379155334956</id><published>2009-02-28T16:01:00.000-08:00</published><updated>2009-03-08T04:19:38.240-07:00</updated><title type='text'>February 23 - 27, 2009</title><content type='html'>Learnings of The Week&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This week, all the groups from group 1 to 10 were given all the time to finish there projects.&lt;br /&gt;&lt;br /&gt;Also this week, Sir Ernie was always checking every progress and improvement in our project.&lt;br /&gt;&lt;br /&gt;Eventhough making our project was very hard, we were still thankful because some of the groups (group 1 - 4) were helping us to do our task well.&lt;br /&gt;&lt;br /&gt;Through this project, I learned many things about parallel port and its use in many fields.&lt;br /&gt;&lt;br /&gt;We all hope that we will be able to accomplish the work that will give us great score!&lt;br /&gt;&lt;br /&gt;Good Luck To Us!!!&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;ui sir!&lt;br /&gt;&lt;br /&gt;ayo na baya amu blog..&lt;br /&gt;&lt;br /&gt;dpat iAdd nimu amo grade sa blog sa 3rd grading sa grade namu sa 4th grading...&lt;br /&gt;&lt;br /&gt;hehe,. atik lang Sir..&lt;br /&gt;&lt;br /&gt;gmay ra jud bya amu grade sa 3rd grading Sir,.&lt;br /&gt;&lt;br /&gt;murag kami na grupo ang pinakalowest...&lt;br /&gt;&lt;br /&gt;huhuhu..&lt;br /&gt;&lt;br /&gt;T_T&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3106267379155334956?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3106267379155334956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3106267379155334956' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3106267379155334956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3106267379155334956'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/february-23-27-2009.html' title='February 23 - 27, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-4093177629082949305</id><published>2009-02-22T02:10:00.000-08:00</published><updated>2009-02-22T02:19:23.232-08:00</updated><title type='text'>Learnings (betinol)</title><content type='html'>Actually this week we had disscussed about our projects. &lt;br /&gt;From group 1-5 it will be all about programming, and the rest will be html making.&lt;br /&gt;&lt;br /&gt;Our group is task to do a Program which is interfacing LED.&lt;br /&gt;&lt;br /&gt;It is hard we know but we have to try inorder for us to learn.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-4093177629082949305?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/4093177629082949305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=4093177629082949305' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4093177629082949305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4093177629082949305'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-betinol.html' title='Learnings (betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1229753663634292442</id><published>2009-02-21T19:16:00.000-08:00</published><updated>2009-03-01T19:34:37.450-08:00</updated><title type='text'></title><content type='html'>Learnings of the Week(Feb.16-20)&lt;br /&gt;By: Frea Diane T. Bauista&lt;br /&gt;&lt;br /&gt;This week, we just continued finishing our new activity about CSS. In making our CSS, we used the Frameset. But what is Frameset?&lt;br /&gt;&lt;br /&gt;The FRAMESET element is a frame container for dividing a window into rectangular subspaces called frames. In a Frameset document, the outermost FRAMESET element takes the place of BODY and immediately follows the HEAD.&lt;br /&gt;&lt;br /&gt;The FRAMESET element contains one or more FRAMESET or FRAME elements, along with an optional NOFRAMES element to provide alternate content for browsers that do not support frames or have frames disabled. A meaningful NOFRAMES element should always be provided and should at the very least contain links to the main frame or frames.&lt;br /&gt;&lt;br /&gt;The ROWS and COLS attributes define the dimensions of each frame in the set. Each attribute takes a comma-separated list of lengths, specified in pixels, as a percentage, or as a relative length. A relative length is expressed as i* where i is an integer. For example, a frameset defined with ROWS="3*,*" (* is equivalent to 1*) will have its first row allotted three times the height of the second row.&lt;br /&gt;&lt;br /&gt;The values specified for the ROWS attribute give the height of each row, from top to bottom. The COLS attribute gives the width of each column from left to right. If ROWS or COLS is omitted, the implied value for the attribute is 100%. If both attributes are specified, a grid is defined and filled left-to-right then top-to-bottom.&lt;br /&gt;&lt;br /&gt;The FRAMESET element also accepts ONLOAD and ONUNLOAD attributes to specify client-side scripting actions to perform when the frames have all been loaded or removed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1229753663634292442?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1229753663634292442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1229753663634292442' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1229753663634292442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1229753663634292442'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-weekfeb_21.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-689143934253906864</id><published>2009-02-21T08:04:00.000-08:00</published><updated>2009-02-21T08:04:00.649-08:00</updated><title type='text'>February 16 - 20, 2009</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;After programming, html, css, and etc..&lt;br /&gt;This week, we were task to make our project to be passed before the finals&lt;br /&gt;and this project will serve as our 4th grading project!&lt;br /&gt;&lt;br /&gt;This project is all about the Parallel Port Interface for Groups 1 to 5 and HTML again for Groups 6 to 10..&lt;br /&gt;&lt;br /&gt;By the way, do you know what parallel port interfacing is??&lt;br /&gt;&lt;br /&gt;For you to know, read the following below...:&lt;br /&gt;&lt;br /&gt;Parallel Port??&lt;br /&gt;&lt;br /&gt;   Parallel port is a simple and inexpensive tool for building computer controlled devices and projects. The simplicity and ease of programming makes parallel port popular in electronics hobbyist world. The parallel port is often used in Computer controlled robots, Atmel/PIC programmers, home automation, ...etc... Here a simple tutorial on parallel port interfacing and programming with some examples.&lt;br /&gt;&lt;br /&gt;   Everybody knows what is parallel port, where it can be found, and for what it is being used. the primary use of parallel port is to connect printers to computer and is specifically designed for this purpose. Thus it is often called as printer Port or Centronics port (this name came from a popular printer manufacturing company 'Centronics' who devised some standards for parallel port). You can see the parallel port connector in the rear panel of your PC. It is a 25 pin female (DB25) connector (to which printer is connected). On almost all the PCs only one parallel port is present, but you can add more by buying and inserting ISA/PCI parallel port cards. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Parallel port modes&lt;br /&gt;&lt;br /&gt;    The IEEE 1284 Standard which has been published in 1994 defines five modes of data transfer for parallel port. They are,&lt;br /&gt;&lt;br /&gt;      1) Compatibility Mode&lt;br /&gt;      2) Nibble Mode&lt;br /&gt;      3) Byte Mode&lt;br /&gt;      4) EPP&lt;br /&gt;      5) ECP&lt;br /&gt;&lt;br /&gt;     The programs, circuits and other information found in this tutorial are compatible to almost all types of parallel ports and can be used without any problems &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hardware: Parallel Port&lt;br /&gt;&lt;br /&gt;The lines in DB25 connector are divided in to three groups, they are&lt;br /&gt;&lt;br /&gt;      1) Data lines (data bus)&lt;br /&gt;      2) Control lines&lt;br /&gt;      3) Status lines &lt;br /&gt;&lt;br /&gt;    As the name refers , data is transferred over data lines , Control lines are used to control the peripheral and of course , the peripheral returns status signals back computer through Status lines. These lines are connected to Data, Control And Status registers internally .&lt;br /&gt;&lt;br /&gt;Parallel port registers&lt;br /&gt;&lt;br /&gt;    As you know, the Data, Control and status lines are connected to there corresponding registers inside the computer. So by manipulating these registers in program , one can easily read or write to parallel port with programming languages like 'C' and BASIC.&lt;br /&gt;&lt;br /&gt;The registers found in standard parallel port are:&lt;br /&gt;&lt;br /&gt;      1) data register&lt;br /&gt;      2) Status register&lt;br /&gt;      3) Control register&lt;br /&gt;&lt;br /&gt;     As there names specifies, Data register is connected to Data lines, Control register is connected to control lines and Status register is connected to Status lines. (Here the word connection does not mean that there is some physical connection between data/control/status lines. The registers are virtually connected to the corresponding lines.). So what ever you write to these registers , will appear in corresponding lines as voltages, Of course, you can measure it with a multimeter. And What ever you give to Parallel port as voltages can be read from these registers(with some restrictions). For example , if we write '1' to Data register , the line Data0 will be driven to +5v. Just like this ,we can programmatically turn on and off any of the data lines and Control lines.&lt;br /&gt;&lt;br /&gt;Where these registers are ?&lt;br /&gt;&lt;br /&gt;      In an IBM PC, these registers are IO mapped and will have unique address. We have to find these addresses to work with parallel port. For a typical PC , the base address of LPT1 is 0x378 and of LPT2 is 0x278. The data register resides at this base address , status register at baseaddress + 1 and the control register is at baseaddress + 2. So once we have the base address , we can calculate the address of each registers in this manner. The table below shows the register addresses of LPT1 and LPT2. &lt;br /&gt;&lt;br /&gt;Programming Concepts&lt;br /&gt;&lt;br /&gt;     Almost all programming languages allow programmers to access parallel port using some library functions. For example , Borland C is providing "Inportb" and "Outportb" functions to read or write IO mapped peripherals. But the examples provided here in this tutorial is written VC++ and can be easily ported to other compilers like Borland C and Turbo C. Visual Basic does not have any functions or support to access parallel port directly, but it is possible to add such capabilities to your VB application by writing a dll in VC++ and calling its exported functions from VB. VC++ provides two functions to access IO mapped peripherals, '_inp' for reading and '_outp' for writing. These functions are declared in "conio.h".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to Test The Program ?&lt;br /&gt;&lt;br /&gt;     Connect The assembled hardware shown above to your PC's parallel port. Open DOS command window Move to "C:\" and type "partest1 write 888 255" and press enter. If everything is correct , LED1 to LED8 in the hardware will glow. You may be doubtful about the command line parameters passed to the program. Here 888(0x378) is the address of the parallel port data register and 255 is the data to be written to parallel port data register. if you enter "partest1 read 888" to command line , the program will read parallel port data register and display it. This will blindly read the contents of parallel port data register , but not the data present on data lines. To read the data from the data lines , we will have to enable the bidirectional data transfer first. To enable Bidirectional data transfer just set the "Bidirectional" bit (bit 5) in control register. This is done by writing 32 to control register. The command "partest1 write 890 32" will do this. After entering this command you can read the status of switches in the hardware using the command "partest1 read 888"&lt;br /&gt;&lt;br /&gt;NOTE: This sample program will not work on Windows NT/2000 or XP if you run the program on these machines , it will show an error. use new Inpout32.dll on NT/2000/XP machines &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Me?? &lt;br /&gt;I belong to Group 5 and task to make a parallel port interface with LED or Light Emitting Diodes..&lt;br /&gt;&lt;br /&gt;This project seems to be very hard for us especially because all of my groupmates&lt;br /&gt;are girls and no one know how to do it well...&lt;br /&gt;&lt;br /&gt;Even though Sir Ernie taught us already using some presentations, it's still&lt;br /&gt;hard for us to do it right..&lt;br /&gt;&lt;br /&gt;But we are still doing our best and hoping to have a good outcome...&lt;br /&gt;&lt;br /&gt;That's All.&lt;br /&gt;&lt;br /&gt;And good luck to us.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;miskan baratuhon lang mga materials nOh, lisod man pud au..&lt;br /&gt;&lt;br /&gt;huhuhu..&lt;br /&gt;&lt;br /&gt;electric na man gud ni xa..&lt;br /&gt;&lt;br /&gt;hehe,.&lt;br /&gt;&lt;br /&gt;:]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-689143934253906864?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/689143934253906864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=689143934253906864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/689143934253906864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/689143934253906864'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/february-16-20-2009.html' title='February 16 - 20, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-9078731383201981705</id><published>2009-02-15T21:03:00.000-08:00</published><updated>2009-02-21T03:53:22.296-08:00</updated><title type='text'>February 9 - 13, 2009</title><content type='html'>lEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;This week, we are on HTML again...&lt;br /&gt;But this second time around, we will do it with CSS or what we call as Cascading Style Sheet and Frames.&lt;br /&gt;&lt;br /&gt;By the way, what do we mean by this things?? ahmm.. Well,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CSS or Cascading Style Sheet and Frames&lt;br /&gt;&lt;br /&gt;There are two kinds of Style sheets the external and internal style sheet:&lt;br /&gt;&lt;br /&gt;♥External Style Sheet&lt;br /&gt;&lt;br /&gt;   An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the tag. The ‹link› goes inside the head section.&lt;br /&gt;&lt;br /&gt;♥Internal Style Sheet&lt;br /&gt;&lt;br /&gt;   An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section with the ‹style› ‹link› tag.&lt;br /&gt;&lt;br /&gt;Frames&lt;br /&gt;&lt;br /&gt;   In HTML, frames enable you present multiple HTML documents within the same window. For example, you can have a left frame for navigation and a right frame for the main content.&lt;br /&gt;&lt;br /&gt;   Frames are achieved by creating a frameset page, and defining each frame from within that page. This frameset page doesn't actually contain any content - just a reference to each frame. The HTML frame tag is used to specify each frame within the frameset. All frame tags are nested with a frameset tag.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Making HTML with CSS is also fun but so confusing...&lt;br /&gt;&lt;br /&gt;You know, CSS is different from HTML..&lt;br /&gt;That's why I'm confused..&lt;br /&gt;&lt;br /&gt;That's All.&lt;br /&gt;&lt;br /&gt;The week is over now.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;suko na pud blik aq papa kay gabie au ko uwi..&lt;br /&gt;&lt;br /&gt;kinsa man gud dli magab-ihan na alangan ugma na dayon ipasa ang HTML with CSS??&lt;br /&gt;&lt;br /&gt;ata au..&lt;br /&gt;&lt;br /&gt;saba man mi bah..&lt;br /&gt;&lt;br /&gt;huhuhu..&lt;br /&gt;&lt;br /&gt;hapit na gud 2 hating-gabi ng nakauwi me tanan..&lt;br /&gt;&lt;br /&gt;may gneh daghan me..&lt;br /&gt;&lt;br /&gt;pero dako au aq byad sa time ouie..&lt;br /&gt;&lt;br /&gt;sagdi lang.. that's part of schooling.&lt;br /&gt;&lt;br /&gt;hehe,.&lt;br /&gt;&lt;br /&gt;hay!! humana na jud..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-9078731383201981705?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/9078731383201981705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=9078731383201981705' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/9078731383201981705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/9078731383201981705'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/february-9-13-2009.html' title='February 9 - 13, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7018260197470188867</id><published>2009-02-15T04:10:00.001-08:00</published><updated>2009-02-15T04:24:11.201-08:00</updated><title type='text'>learnings of the week (lorebeth)</title><content type='html'>&lt;span style="font-weight:bold;"&gt;We had our new topic about cascading style sheets.&lt;br /&gt;&lt;br /&gt;Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. Tutorials, books, mailing lists for users, etc. can be found on the “learning CSS” page. For background information on style sheets, see the Web style sheets page. Discussions about CSS are carried out on the (archived) www-style@w3.org mailing list (and sometimes on the CSS blog) and on comp.infosystems.www.authoring.stylesheets.&lt;br /&gt;&lt;br /&gt;Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including SVG and XUL.&lt;br /&gt;&lt;br /&gt;CSS can be used locally by the readers of web pages to define colors, fonts, layout, and other aspects of document presentation. It is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation (written in CSS). This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.&lt;br /&gt;&lt;br /&gt;Use of CSS&lt;br /&gt;&lt;br /&gt;Prior to CSS, nearly all of the presentational attributes of HTML documents were contained within the HTML markup; all font colors, background styles, element alignments, borders and sizes had to be explicitly described, often repeatedly, within the HTML. CSS allows authors to move much of that information to a separate stylesheet resulting in considerably simpler HTML markup.&lt;br /&gt;&lt;br /&gt;Headings (h1 elements), sub-headings (h2), sub-sub-headings (h3), etc., are defined structurally using HTML. In print and on the screen, choice of font, size, color and emphasis for these elements is presentational.&lt;br /&gt;&lt;br /&gt;Prior to CSS, document authors who wanted to assign such typographic characteristics to, say, all h2 headings had to use the HTML font and other presentational elements for each occurrence of that heading type. The additional presentational markup in the HTML made documents more complex, and generally more difficult to maintain. In CSS, presentation is separated from structure. In print, CSS can define color, font, text alignment, size, borders, spacing, layout and many other typographic characteristics. It can do so independently for on-screen and printed views. CSS also defines non-visual styles such as the speed and emphasis with which text is read out by aural text readers. The W3C now considers the advantages of CSS for defining all aspects of the presentation of HTML pages to be superior to other methods. It has therefore deprecated the use of all the original presentational HTML markup.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7018260197470188867?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7018260197470188867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7018260197470188867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7018260197470188867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7018260197470188867'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-week-lorebeth.html' title='learnings of the week (lorebeth)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7034030089215412448</id><published>2009-02-13T01:28:00.000-08:00</published><updated>2009-02-13T01:37:49.585-08:00</updated><title type='text'></title><content type='html'>LEARNINGS OF THE WEEK(Feb.9-13)&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;This week, we had a new lesson. And Sir Ernie taught us a new lesson about CSS.&lt;br /&gt;&lt;br /&gt;But what does CSS really mean?&lt;br /&gt;&lt;br /&gt;    * CSS stands for Cascading Style Sheets&lt;br /&gt;    * Styles define how to display HTML elements&lt;br /&gt;    * Styles are normally stored in Style Sheets&lt;br /&gt;    * Styles were added to HTML 4.0 to solve a problem&lt;br /&gt;    * External Style Sheets can save you a lot of work&lt;br /&gt;    * External Style Sheets are stored in CSS files&lt;br /&gt;    * Multiple style definitions will cascade into one&lt;br /&gt;&lt;br /&gt;Style Sheets Can Save a Lot of Work&lt;br /&gt;&lt;br /&gt;Styles sheets define HOW HTML elements are to be displayed, just like the font tag and the color attribute in HTML 3.2. Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in your Web, just by editing one single CSS document!&lt;br /&gt;&lt;br /&gt;CSS is a breakthrough in Web design because it allows developers to control the style and layout of multiple Web pages all at once. As a Web developer you can define a style for each HTML element and apply it to as many Web pages as you want. To make a global change, simply change the style, and all elements in the Web are updated automatically. &lt;br /&gt;&lt;br /&gt;ultiple Styles Will Cascade Into One&lt;br /&gt;&lt;br /&gt;Style sheets allow style information to be specified in many ways. Styles can be specified inside a single HTML element, inside the head element of an HTML page, or in an external CSS file. Even multiple external style sheets can be referenced inside a single HTML document. &lt;br /&gt;Cascading Order&lt;br /&gt;&lt;br /&gt;What style will be used when there is more than one style specified for an HTML element?&lt;br /&gt;&lt;br /&gt;Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet by the following rules, where number four has the highest priority:&lt;br /&gt;&lt;br /&gt;   1. Browser default&lt;br /&gt;   2. External style sheet&lt;br /&gt;   3. Internal style sheet (inside the head tag)&lt;br /&gt;   4. Inline style (inside an HTML element)&lt;br /&gt;&lt;br /&gt;Anyway, HAPPY 42nd FOUNDATION DAY to all of you!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7034030089215412448?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7034030089215412448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7034030089215412448' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7034030089215412448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7034030089215412448'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-weekfeb.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8192225525977350021</id><published>2009-02-07T16:00:00.000-08:00</published><updated>2009-02-15T04:09:37.176-08:00</updated><title type='text'>learnings of the week (betinol)</title><content type='html'>Actually we had our html making.&lt;br /&gt;&lt;br /&gt;HTML, an initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as links, headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of tags, surrounded by angle brackets. HTML can also describe, to some degree, the appearance and semantics of a document, and can include embedded scripting language code (such as JavaScript) which can affect the behavior of Web browsers and other HTML processors.&lt;br /&gt;Contents&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We had to do this for one week.Though I'm not successful in doing this because, still I did my best.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8192225525977350021?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8192225525977350021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8192225525977350021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8192225525977350021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8192225525977350021'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-week-betinol.html' title='learnings of the week (betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3327597654135691572</id><published>2009-02-07T09:29:00.000-08:00</published><updated>2009-02-21T03:43:16.432-08:00</updated><title type='text'>February 2 -6, 2009</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;I'm very tired this week making our final HTML...&lt;br /&gt;&lt;br /&gt;I added many applications in my work that I've learn from some sites.&lt;br /&gt;&lt;br /&gt;For me, I think I've done my HTML well.&lt;br /&gt;&lt;br /&gt;I've given my whole time, effort and money on it.&lt;br /&gt;&lt;br /&gt;And also this week, we also have some sort of reviews about html...&lt;br /&gt;&lt;br /&gt;In making html, first you have to make it in a notepad, like below:&lt;br /&gt;&lt;br /&gt;‹html›&lt;br /&gt;‹head›&lt;br /&gt;‹title›Title of the page‹/title›&lt;br /&gt;‹/head›&lt;br /&gt;‹body›&lt;br /&gt;This is my first homepage. ‹b›This text is bold ‹/b›&lt;br /&gt;‹/body›&lt;br /&gt;‹/html›&lt;br /&gt;&lt;br /&gt;♦When you save an HTML file, you can use either the .htm or the .html extension. We have used .htm in our examples. It might be a bad habit inherited from the past when some of the commonly used software only allowed three letters extensions.&lt;br /&gt;&lt;br /&gt;♦You can easily edit files using a WYSIWYG (what you see is what you get) editor like Frontpage, Claris Home Page or Adobe PageMill instead of writing your markup tags in a plain text file.&lt;br /&gt;&lt;br /&gt;♦But if you want to be skillful Web developer, we strongly recommend that you use a plain text editor to learn your primer HTML.&lt;br /&gt;&lt;br /&gt;♦HTML documents are text files made up of HTML elements.&lt;br /&gt;♦HTML elements are defined using HTML tags.&lt;br /&gt;&lt;br /&gt;♦HTML tags are used to mark-up HTML elements&lt;br /&gt;&lt;br /&gt;♦HTML tags are surrounded by the two characters &lt;&gt;&lt;br /&gt;&lt;br /&gt;♦The surroundings characters are called angle brackets&lt;br /&gt;&lt;br /&gt;♦HTML tags normally come in pairs like ‹b›and‹/b›&lt;br /&gt;&lt;br /&gt;♦The first tag in a pair is the start tag, the second tag is the end tag&lt;br /&gt;&lt;br /&gt;♦The text between the start and end tags is the element content.&lt;br /&gt;&lt;br /&gt;♦HTML tags are not case sensitive, ‹b› means the same as ‹B›&lt;br /&gt;&lt;br /&gt;That's ALL.. =&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;humana jud ang html..&lt;br /&gt;&lt;br /&gt;hay!! kakapoy..&lt;br /&gt;&lt;br /&gt;ma-alas onsehan sa internetan..&lt;br /&gt;&lt;br /&gt;hadlok au..&lt;br /&gt;&lt;br /&gt;at last..natapos din..&lt;br /&gt;&lt;br /&gt;:-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3327597654135691572?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3327597654135691572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3327597654135691572' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3327597654135691572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3327597654135691572'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/february-2-6-2009.html' title='February 2 -6, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-271280898938401559</id><published>2009-02-07T01:20:00.000-08:00</published><updated>2009-02-13T01:34:35.005-08:00</updated><title type='text'></title><content type='html'>LEARNINGS OF THE WEEK (Feb. 2-6)&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;This week, we were still finishing our own web page.&lt;br /&gt;Some more details were added to it.&lt;br /&gt;And lastly, we were already taught on how to edit or fix our own mistakes on making the html.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-271280898938401559?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/271280898938401559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=271280898938401559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/271280898938401559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/271280898938401559'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-week-feb.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7095946888104509824</id><published>2009-02-01T18:00:00.000-08:00</published><updated>2009-02-01T18:00:00.598-08:00</updated><title type='text'>learnings of the week (lorebeth betinol)</title><content type='html'>Well, we had our new webpage already and everyone is really making their best to make thier work really special.&lt;br /&gt;&lt;br /&gt;Each day our webpage is improving. Everytime we need help our mates are just there to help us.&lt;br /&gt;&lt;br /&gt;We started it with heading and............................. everything comes next. All we have to do is to make it beautiful. We put some navigating buttons, pictures and background.&lt;br /&gt;&lt;br /&gt;It is similar with making a program in the computer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7095946888104509824?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7095946888104509824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7095946888104509824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7095946888104509824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7095946888104509824'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/learnings-of-week-lorebeth-betinol.html' title='learnings of the week (lorebeth betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5516242567694233657</id><published>2009-02-01T16:34:00.000-08:00</published><updated>2009-02-21T03:33:58.516-08:00</updated><title type='text'>Januray 26 - 30, 2009</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sir Ernie was not around this week.. =[&lt;br /&gt;I think he had to go to a seminar or something chuva...&lt;br /&gt;&lt;br /&gt;Last week, before the week end, he told us to make a html.&lt;br /&gt;And also he give some Introduction about HTML and taught us some basic examples...&lt;br /&gt;&lt;br /&gt;This week, we were so busy in making our very own HTML.&lt;br /&gt;And also Sir told us to upload some HTML everyday to see some improvements.&lt;br /&gt;&lt;br /&gt;Although making HTML was something fun, &lt;br /&gt;making things like HTML requires more time, effort and especially money for those&lt;br /&gt;students like me who don't have personal computers&lt;br /&gt;at home...&lt;br /&gt;&lt;br /&gt;HTML is amazing!!&lt;br /&gt;&lt;br /&gt;That's all..&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;suko na ako mama &amp; papa Sir kay cge ra daw me net...&lt;br /&gt;&lt;br /&gt;gasto daw au ko.&lt;br /&gt;&lt;br /&gt;cge ra ko balik net pra ma-improve ako HTML..&lt;br /&gt;&lt;br /&gt;4 hours a day gud ko Sir..&lt;br /&gt;&lt;br /&gt;grabeh nOh?? mahal au..&lt;br /&gt;&lt;br /&gt;huhuhu... T_T&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5516242567694233657?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5516242567694233657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5516242567694233657' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5516242567694233657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5516242567694233657'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/02/januray-26-30-2009.html' title='Januray 26 - 30, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-9137003243183163050</id><published>2009-01-31T01:15:00.000-08:00</published><updated>2009-02-13T01:20:08.720-08:00</updated><title type='text'></title><content type='html'>LEARNINGS OF THE WEEK (Jan. 26-30)&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;This Week, we don't really have a lesson.&lt;br /&gt;We were just busy doing our own web page.&lt;br /&gt;Everyday, we edit it and upload the new one.&lt;br /&gt;Thanks to the help of my classmates.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-9137003243183163050?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/9137003243183163050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=9137003243183163050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/9137003243183163050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/9137003243183163050'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-jan_31.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7981407613274026658</id><published>2009-01-25T13:35:00.000-08:00</published><updated>2009-02-01T01:44:58.252-08:00</updated><title type='text'>learnings of the week (lorebeth betinol)</title><content type='html'>We had tackled about making a webpage, and everyone is excited to make their own.&lt;br /&gt;&lt;br /&gt;A web page or webpage is a resource of information that is suitable for the World Wide Web and can be accessed through a web browser. This information is usually in HTML or XHTML format, and may provide navigation to other web pages via hypertext links.&lt;br /&gt;&lt;br /&gt;Web pages may be retrieved from a local computer or from a remote web server. The web server may restrict access only to a private network, e.g. a corporate intranet, or it may publish pages on the World Wide Web. Web pages are requested and served from web servers using Hypertext Transfer Protocol (HTTP).&lt;br /&gt;&lt;br /&gt;Web pages may consist of files of static text stored within the web server's file system (static web pages), or the web server may construct the (X)HTML for each web page when it is requested by a browser (dynamic web pages). Client-side scripting can make web pages more responsive to user input once in the client browser.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating a web page&lt;br /&gt;&lt;br /&gt;To create a web page, a text editor or a specialized HTML editor is needed. In order to upload the created web page to a web server, traditionally an FTP client is needed.&lt;br /&gt;&lt;br /&gt;The design of a web page is highly personal. A design can be made according to one's own preference, or a pre-made web template can be used. Web Templates let web page designers edit the content of a web page without having to worry about the overall aesthetics. Many people publish their own web pages using products like Geocities from Yahoo, Tripod, or Angelfire. These web publishing tools offer free page creation and hosting up to a certain size limit.&lt;br /&gt;&lt;br /&gt;Other ways of making a web page is to download specialized software, like a Wiki, CMS, or forum. These options allow for quick and easy creation of a web page which is typically dynamic.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7981407613274026658?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7981407613274026658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7981407613274026658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7981407613274026658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7981407613274026658'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-lorebeth-betinol_25.html' title='learnings of the week (lorebeth betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2791989346187793649</id><published>2009-01-24T19:49:00.000-08:00</published><updated>2009-01-25T19:54:11.735-08:00</updated><title type='text'></title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-size:130%;color:#ff0000;"&gt;Learnings of the Week (Jan.19-23)&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-size:130%;color:#009900;"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ff6600;"&gt;Last week, we tackled about HTML and we wer told to make our own website.&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ff6600;"&gt;But, what is HTML?&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ff6600;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt;HTML stands for Hyper Text Markup Language. An HTML file is a text file containing small markup tags. The file must have an HTM or HTML extension. That markup tags tell the web browser how to display the page. HTML documents are text files made up of HTML elements. HTML elements are defined using HTML tags. HTML tags are used to mark-up HTML elements. It is surrounded by the two characters &lt;&gt;, the surrounding characters are called angle brackets. HTML tags normally come in pairs like and . The first tag in a pair is the start tag; the second tag is the end tag. The text between the start and end tags is the element content and the HTML tags are not case sensitive.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffff00;"&gt;Hypertext Markup Language (HTML) in computer science, the standard text-formatting language since 1989 for documents on the interconnected computing network known as the World Wide Web. HTML documents are text files that contain two parts: content that is meant to be rendered on a computer screen; and markup or tags, encoded information that directs the text format on the screen and is generally hidden from the user. HTML is a subset of a broader language called Standard Generalized Markup Language (SGML), which is a system for encoding and formatting documents, whether for output to a computer screen or to paper.&lt;br /&gt;Some tags in an HTML document determine the way certain text, such as titles, will be formatted. Other tags cue the computer to respond to the user's actions on the keyboard or mouse. For instance, the user might click on an icon (a picture that represents a specific command), and that action might call another piece of software to display a graphic, play a recording, or run a short movie. Another important tag is a link, which may contain the Uniform Resource Locator (URL) of another document. The URL can be compared to an address where a particular document resides. The document may be stored on the same computer as the parent document or on any computer connected to the World Wide Web. The user can navigate from document to document simply by clicking on these links. HTML also includes markups for forms that let the user fill out information and electronically send, or e-mail, the data to the document author, and initiate sophisticated searches of information on the Internet, or order goods and &lt;/span&gt;&lt;span style="color:#33ff33;"&gt;services.&lt;br /&gt;The software that permits the user to navigate the World Wide Web and view HTML-encoded documents is called a browser. It interprets the HTML tags in a document and formats the content for screen display. Since HTML is an accepted standard, anyone can build a browser without concerning themselves with what form various documents will assume, unlike documents produced by typical word processors, which must be translated into a different format if another word processing application is used. Most sites on the World Wide Web adhere to HTML standards and, because HTML is easy to use, the World Wide Web has grown rapidly. HTML continues to evolve, however, so browsers must be upgraded regularly to meet the revised standards.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-2791989346187793649?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/2791989346187793649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=2791989346187793649' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2791989346187793649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2791989346187793649'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-jan_24.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8146026452985696899</id><published>2009-01-24T11:49:00.000-08:00</published><updated>2009-02-21T03:20:57.431-08:00</updated><title type='text'>January 19 - 23, 2009</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;This week??&lt;br /&gt;&lt;br /&gt;This week we dont tackled anything.&lt;br /&gt;I guess Sir Balbuena was so busy... =&lt;&lt;br /&gt;&lt;br /&gt;What we done this week?&lt;br /&gt;We just check our test papers for the third grading periodical examination.&lt;br /&gt;And don't learn new things about tle this week..&lt;br /&gt;&lt;br /&gt;This week, we also have our recollection held at Molave Hotel..&lt;br /&gt;January 20 was the exact date..&lt;br /&gt;&lt;br /&gt;Maybe next week we will have to learn something about making web page.&lt;br /&gt;&lt;br /&gt;The best thing is we're now off with programming.&lt;br /&gt;&lt;br /&gt;yipeey!!&lt;br /&gt;&lt;br /&gt;oOh yes!!&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;nkarelax jud me kron na week..&lt;br /&gt;&lt;br /&gt;wheew..&lt;br /&gt;&lt;br /&gt;sus,. lisod man gud au programming bah.&lt;br /&gt;&lt;br /&gt;at last humana jud ang programming!!!!!&lt;br /&gt;&lt;br /&gt;yeheey!! :]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8146026452985696899?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8146026452985696899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8146026452985696899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8146026452985696899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8146026452985696899'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/january-19-23-2009.html' title='January 19 - 23, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5423251041434157761</id><published>2009-01-22T01:34:00.001-08:00</published><updated>2009-01-22T01:34:46.735-08:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Xm9fbS84Adc/SXg9qzYNpvI/AAAAAAAAAH4/NYGO-YQ0tVM/s1600-h/largeAnimePaperscans_Angel-Dust_bar.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 309px; height: 400px;" src="http://3.bp.blogspot.com/_Xm9fbS84Adc/SXg9qzYNpvI/AAAAAAAAAH4/NYGO-YQ0tVM/s400/largeAnimePaperscans_Angel-Dust_bar.jpg" alt="" id="BLOGGER_PHOTO_ID_5294049167529584370" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5423251041434157761?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5423251041434157761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5423251041434157761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5423251041434157761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5423251041434157761'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/blog-post.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Xm9fbS84Adc/SXg9qzYNpvI/AAAAAAAAAH4/NYGO-YQ0tVM/s72-c/largeAnimePaperscans_Angel-Dust_bar.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7248394163591121954</id><published>2009-01-18T18:00:00.000-08:00</published><updated>2009-01-18T18:00:01.092-08:00</updated><title type='text'>Learnings of the week (Lorebeth Betinol)</title><content type='html'>January 12-16,2009&lt;br /&gt;&lt;br /&gt;This week we had discussed  all about arrays, and............ here it goes...............&lt;br /&gt;&lt;br /&gt;***Single – Dimensional Arrays&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Array is a collection of variables of the same data type that is referenced by a common name. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Array declaration&lt;br /&gt;&lt;br /&gt;The general form for any declaration is as follows:&lt;br /&gt;        &lt;br /&gt;              type array_name[size];&lt;br /&gt;Where:&lt;br /&gt;  type is any valid data type in Turbo C which  declares the type of values that array will hold.&lt;br /&gt;&lt;br /&gt;  array_name is a valid variable name which will name the array.&lt;br /&gt;&lt;br /&gt;  size defines how many elements the array will hold.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The two declarations for arrays number and answer can be combined into a single declaration:&lt;br /&gt;&lt;br /&gt;int number[100] , answer [25];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;array initialization&lt;br /&gt;&lt;br /&gt;Arrays can give initial values during the declaration. This is called array initialization..&lt;br /&gt;&lt;br /&gt;      int Array1[5]={25, 5, 7, 11, 163};&lt;br /&gt;&lt;br /&gt;In &lt;a href="http://en.wikipedia.org/wiki/Computer_science" title="Computer science"&gt;computer science&lt;/a&gt;, an &lt;b&gt;array&lt;/b&gt;&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-0" title=""&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Data_structure" title="Data structure"&gt;data structure&lt;/a&gt; consisting of a group of &lt;a href="http://en.wikipedia.org/wiki/Element_%28mathematics%29" title="Element (mathematics)"&gt;elements&lt;/a&gt; that are accessed by &lt;a href="http://en.wikipedia.org/wiki/Index_%28information_technology%29" title="Index (information technology)"&gt;indexing&lt;/a&gt;. In most &lt;a href="http://en.wikipedia.org/wiki/Programming_language" title="Programming language"&gt;programming languages&lt;/a&gt; each element has the same &lt;a href="http://en.wikipedia.org/wiki/Data_type" title="Data type"&gt;data type&lt;/a&gt; and the array occupies a contiguous area of &lt;a href="http://en.wikipedia.org/wiki/Computer_memory" title="Computer memory" class="mw-redirect"&gt;storage&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline"&gt;Overview&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Most programming languages have a built-in &lt;i&gt;array&lt;/i&gt; data type, although what is called an array in the language documentation is sometimes really an &lt;a href="http://en.wikipedia.org/wiki/Associative_array" title="Associative array"&gt;associative array&lt;/a&gt;. Conversely, the contiguous storage kind of array discussed here may alternatively be called a &lt;i&gt;vector&lt;/i&gt;, &lt;i&gt;list&lt;/i&gt;,&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; or &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Tables" title="Tables" class="mw-redirect"&gt;table&lt;/a&gt;&lt;/i&gt;.&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Array#cite_note-2" title=""&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Some programming languages support &lt;a href="http://en.wikipedia.org/wiki/Array_programming" title="Array programming"&gt;array programming&lt;/a&gt; (e.g., &lt;a href="http://en.wikipedia.org/wiki/APL_programming_language" title="APL programming language" class="mw-redirect"&gt;APL&lt;/a&gt;, newer versions of &lt;a href="http://en.wikipedia.org/wiki/Fortran" title="Fortran"&gt;Fortran&lt;/a&gt;) which generalises operations and functions to work transparently over arrays as they do with scalars, instead of requiring looping over array members.&lt;/p&gt; &lt;p&gt;&lt;b&gt;Multi-dimensional arrays&lt;/b&gt; are accessed using more than one index: one for each dimension. Multidimensional indexing reduced to a lesser number of dimensions, for example, a two-dimensional array with consisting of 6 and 5 elements respectively could be represented using a one-dimensional array of 30 elements.&lt;/p&gt; &lt;p&gt;Arrays can be classified as &lt;i&gt;fixed-sized arrays&lt;/i&gt; (sometimes known as &lt;i&gt;static arrays&lt;/i&gt;) whose size cannot change once their storage has been allocated, or &lt;b&gt;&lt;a href="http://en.wikipedia.org/wiki/Dynamic_array" title="Dynamic array"&gt;dynamic arrays&lt;/a&gt;&lt;/b&gt;, which can be resized.&lt;/p&gt; &lt;p&gt;&lt;a name="Properties" id="Properties"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;[&lt;a href="http://en.wikipedia.org/w/index.php?title=Array&amp;amp;action=edit&amp;amp;section=2" title="Edit section: Properties"&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class="mw-headline"&gt;Properties&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Arrays permit constant time (&lt;a href="http://en.wikipedia.org/wiki/Big_O_notation" title="Big O notation"&gt;O&lt;/a&gt;(1)) &lt;a href="http://en.wikipedia.org/wiki/Random_access" title="Random access"&gt;random access&lt;/a&gt; to individual elements, which is optimal, but moving elements requires time proportional to the number of elements moved. On actual hardware, the presence of e.g. &lt;a href="http://en.wikipedia.org/wiki/Cache" title="Cache"&gt;caches&lt;/a&gt; can make sequential iteration over an array noticeably faster than &lt;a href="http://en.wikipedia.org/wiki/Random_access" title="Random access"&gt;random access&lt;/a&gt; — a consequence of arrays having good &lt;a href="http://en.wikipedia.org/wiki/Locality_of_reference" title="Locality of reference"&gt;locality of reference&lt;/a&gt; because their elements occupy contiguous memory locations — but this does not change the asymptotic &lt;a href="http://en.wikipedia.org/wiki/Computational_complexity_theory" title="Computational complexity theory"&gt;complexity&lt;/a&gt; of access. Likewise, there are often facilities (such as &lt;a href="http://en.wikipedia.org/wiki/Memcpy" title="Memcpy" class="mw-redirect"&gt;memcpy&lt;/a&gt;) which can be used to move contiguous blocks of array elements faster than one can do through individual element access, but that does not change the asymptotic complexity either.&lt;/p&gt; &lt;p&gt;Memory-wise, arrays are compact data structures with no per-element &lt;a href="http://en.wikipedia.org/wiki/Computational_overhead" title="Computational overhead"&gt;overhead&lt;/a&gt;. There may be a per-array overhead, e.g. to store index bounds, but this is language-dependent. It can also happen that elements stored in an array require &lt;i&gt;less&lt;/i&gt; memory than the same elements stored in individual variables, because several array elements can be stored in a single &lt;a href="http://en.wikipedia.org/wiki/Word_%28computing%29" title="Word (computing)"&gt;word&lt;/a&gt;; such arrays are often called &lt;b&gt;packed&lt;/b&gt; arrays.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7248394163591121954?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7248394163591121954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7248394163591121954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7248394163591121954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7248394163591121954'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-lorebeth-betinol.html' title='Learnings of the week (Lorebeth Betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6382146229957381243</id><published>2009-01-17T19:49:00.000-08:00</published><updated>2009-01-21T20:03:20.118-08:00</updated><title type='text'></title><content type='html'>&lt;div align="center"&gt;&lt;span style="color:#ff0000;"&gt;LEARNINGS OF THE WEEK (Jan. 12-16)&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#33cc00;"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#3333ff;"&gt;Last week, we tackled about arrays. We, Batch 1, have an activity about our last topic which is "ARRAYS".&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ff9900;"&gt;ARRAY -it is a collection of variables of the same data type that is referenced by a common name. &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;Array declaration The general form for any declaration is as follows: type array_name[size]; Where: type is any valid data type in Turbo C which declares the type of values that array will hold. array_name is a valid variable name which will name the array. size defines how many elements the array will hold. Array Initialization Arrays can give initial values during the declaration. This is called array initialization. int Array1[5]={25,5,7,11,163}&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc33;"&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;!--[if !mso]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;br /&gt;Array[0] = 25&lt;br /&gt;&lt;!--[if !mso]--&gt;&lt;!--[endif]--&gt;&lt;!--[if !mso &amp;amp; !vml]--&gt; &lt;!--[endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;Parts of the Array:&lt;br /&gt;Where:&lt;br /&gt;Array – array name&lt;br /&gt;[0] – subscript or index&lt;br /&gt;25 – array element&lt;br /&gt;ARRAY DECLARATION&lt;br /&gt;This is the general form for any declaration:&lt;br /&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;!--[if !mso]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;br /&gt;type array_name[size];&lt;br /&gt;&lt;!--[if !mso]--&gt;&lt;!--[endif]--&gt;&lt;!--[if !mso &amp;amp; !vml]--&gt; &lt;!--[endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;br /&gt;Where:&lt;br /&gt;type is any valid data type in Turbo C which declares the type of values that array will hold.&lt;br /&gt;array_name is a valid variable name which will name the array.&lt;br /&gt;size defines how many elements the array will hold.&lt;br /&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;!--[if !mso]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;br /&gt;int number[100] , answer [25];&lt;br /&gt;&lt;!--[if !mso]--&gt;&lt;!--[endif]--&gt;&lt;!--[if !mso &amp;amp; !vml]--&gt; &lt;!--[endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc33;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc33;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6382146229957381243?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6382146229957381243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6382146229957381243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6382146229957381243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6382146229957381243'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-jan_17.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5477134280789177837</id><published>2009-01-17T16:42:00.000-08:00</published><updated>2009-01-17T16:42:00.930-08:00</updated><title type='text'>Learnings of the Week!! (Jan 12-16)</title><content type='html'>&lt;div align="center"&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#ffffff;"&gt;&lt;strong&gt;Steffany Queen P. Bigoy&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#993399;"&gt;This week, we have discussed all about &lt;strong&gt;&lt;span style="font-size:130%;"&gt;&lt;em&gt;ARRAY&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;. Honestly, i found it so difficult. :c&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#993399;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#993399;"&gt;Heres's the summary of our lessons. &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#993399;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Array is a collection of variables of the same data type that is referenced by a common name.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;&lt;br /&gt;Consider the illustration below…&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;                                                                               #include&lt;stdio.h&gt;                                                                                       main()&lt;br /&gt;{&lt;br /&gt; int array[4]={25,5,7,11,163};&lt;br /&gt;clrscr();&lt;br /&gt;printf(“%d %d %d %d %d”, array[0], array[1], array[2],array[3],array[4]);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;25 5 7 11 163&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Array declaration&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="color:#ffcc00;"&gt;The general form for any declaration is as follows:&lt;br /&gt; &lt;br /&gt;type array_name[size];&lt;br /&gt;Where:&lt;br /&gt;type is any valid data type in Turbo C which  declares the type of values that array will hold.&lt;br /&gt;array_name is a valid variable name which will name the array.&lt;br /&gt;size defines how many elements the array will hold.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Array declaration&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;br /&gt;lThe two declarations for arrays number and answer can be combined into a single declaration:&lt;br /&gt;int number[100] , answer [25]; &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Array Initialization&lt;/strong&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;br /&gt;lArrays can give initial values during the declaration. This is called array initialization..&lt;br /&gt;int Array1[5]={25, 5, 7, 11, 163};&lt;br /&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#663333;"&gt;After we had discussed it, we then have our activities. Ü&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5477134280789177837?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5477134280789177837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5477134280789177837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5477134280789177837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5477134280789177837'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-jan-12-16.html' title='Learnings of the Week!! (Jan 12-16)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8631452768339752747</id><published>2009-01-17T14:06:00.000-08:00</published><updated>2009-01-19T02:20:30.414-08:00</updated><title type='text'>January 12 - 16, 2009</title><content type='html'>&lt;div style="text-align: center;"&gt;LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV - Rizal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The students were very busy this week. Because this week was the time for us to take our third periodical examination.&lt;br /&gt;&lt;br /&gt;We took the T.L.E examination January 16.&lt;br /&gt;&lt;br /&gt;It was really really HARD...&lt;br /&gt;I&lt;br /&gt;I still get confused every time I trace the program...&lt;br /&gt;&lt;br /&gt;I spend lot of the time in analyzing the program...&lt;br /&gt;&lt;br /&gt;For me, programming is one of hardest lesson I've ever took...&lt;br /&gt;&lt;br /&gt;And also, we have some reviews about our past lessons before the day of the test come.&lt;br /&gt;&lt;br /&gt;We also discussed about array this week. To understand more about array, read below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-style: italic;"&gt;Array&lt;/span&gt;&lt;/span&gt; is a collection of variables of the same data type that is referenced by a common name. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Consider the illustration below…&lt;/span&gt;&lt;div style="color: rgb(0, 0, 0);" align="center"&gt;&lt;br /&gt;                                                                              #include&lt;stdio.h&gt;                                                                                       main()&lt;br /&gt;{&lt;br /&gt;int array[4]={25,5,7,11,163};&lt;br /&gt;clrscr();&lt;br /&gt;printf(“%d %d %d %d %d”, array[0], array[1], array[2],array[3],array[4]);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;25 5 7 11 163&lt;/stdio.h&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Array declaration&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The general form for any declaration is as follows:&lt;br /&gt;      &lt;br /&gt;             type array_name[size];&lt;br /&gt;Where:&lt;br /&gt; type is any valid data type in Turbo C which  declares the type of values that array will hold.&lt;br /&gt;&lt;br /&gt; array_name is a valid variable name which will name the array.&lt;br /&gt;&lt;br /&gt; size defines how many elements the array will hold.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The two declarations for arrays number and answer can be combined into a single declaration:&lt;br /&gt;&lt;br /&gt;int number[100] , answer [25];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;array initialization&lt;br /&gt;&lt;br /&gt;Arrays can give initial values during the declaration. This is called array initialization..&lt;br /&gt;&lt;br /&gt;     int Array1[5]={25, 5, 7, 11, 163};&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;huhuhu..&lt;br /&gt;la jud koy nasabtan miskan unsaon...&lt;br /&gt;how sad... :-(&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8631452768339752747?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8631452768339752747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8631452768339752747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8631452768339752747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8631452768339752747'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/january-12-16-2009.html' title='January 12 - 16, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2099366147105526567</id><published>2009-01-10T19:23:00.000-08:00</published><updated>2009-01-10T19:27:52.573-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Jan. 5-9)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;This week, we have discussed about Recursion.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="color: rgb(204, 102, 204);"&gt;&lt;b&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion" title="Recursion"&gt;Recursion&lt;/a&gt; in computer science&lt;/b&gt; is a way of thinking about and solving problems. It is, in fact, one of the central ideas of computer science. &lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-0" title=""&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Solving a problem using recursion means the solution depends on solutions to smaller instances of the same problem. &lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;blockquote style="color: rgb(255, 204, 51);"&gt; &lt;p&gt;"The power of recursion evidently lies in the possibility of defining an infinite set of objects by a finite statement. In the same manner, an infinite number of computations can be described by a finite recursive program, even if this program contains no explicit repetitions." &lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-2" title=""&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;Most high-level computer programming languages support recursion by allowing a function to call itself within the program text. &lt;/span&gt;&lt;a style="color: rgb(0, 153, 0);" href="http://en.wikipedia.org/wiki/Imperative_languages" title="Imperative languages" class="mw-redirect"&gt;Imperative languages&lt;/a&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; define looping constructs like “while” and “for” loops that are used to perform repetitive actions. Some &lt;/span&gt;&lt;a style="color: rgb(0, 153, 0);" href="http://en.wikipedia.org/wiki/Functional_languages" title="Functional languages" class="mw-redirect"&gt;functional programming languages&lt;/a&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; do not define any looping constructs but rely solely on recursion to repeatedly call code. &lt;/span&gt;&lt;a style="color: rgb(0, 153, 0);" href="http://en.wikipedia.org/wiki/Computability_theory_%28computer_science%29" title="Computability theory (computer science)"&gt;Computability theory&lt;/a&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; has proven that these recursive only languages are mathematically equivalent to the imperative languages, meaning they can solve the same kinds of problems even without the typical control structures like “while” and “for”.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style="color: rgb(0, 204, 204);"&gt;&lt;span class="mw-headline"&gt;Examples of recursively defined procedures (generative recursion)&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;a name="Factorial" id="Factorial"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt; &lt;span style="color: rgb(255, 102, 102);" class="mw-headline"&gt;Factorial&lt;/span&gt;&lt;/h4&gt; &lt;p style="color: rgb(255, 153, 0);"&gt;A classic example of a recursive procedure is the function used to calculate the &lt;a href="http://en.wikipedia.org/wiki/Factorial" title="Factorial"&gt;factorial&lt;/a&gt; of an &lt;a href="http://en.wikipedia.org/wiki/Integer" title="Integer"&gt;integer&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Function definition: &lt;img class="tex" alt="" n =" 0" /&gt; 0 \\  \end{cases}" src="http://upload.wikimedia.org/math/9/6/7/967ff33812b62076e5de85fe7fb40b83.png"&gt;&lt;/p&gt; &lt;table class="wikitable"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th&gt;&lt;a href="http://en.wikipedia.org/wiki/Pseudocode" title="Pseudocode"&gt;Pseudocode&lt;/a&gt; (recursive):&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;pre&gt;&lt;b&gt;function&lt;/b&gt; factorial is:&lt;br /&gt;&lt;b&gt;input&lt;/b&gt;: integer &lt;i&gt;n&lt;/i&gt; such that &lt;i&gt;n&lt;/i&gt; &gt;= 1&lt;br /&gt;&lt;b&gt;output&lt;/b&gt;: [&lt;i&gt;n&lt;/i&gt; × (&lt;i&gt;n&lt;/i&gt;-1) × (&lt;i&gt;n&lt;/i&gt;-2) × … × 1]&lt;br /&gt;&lt;br /&gt;   1. if &lt;i&gt;n&lt;/i&gt; is 0, &lt;b&gt;return&lt;/b&gt; 1&lt;br /&gt;   2. otherwise, &lt;b&gt;return&lt;/b&gt; [ &lt;i&gt;n&lt;/i&gt; × factorial(&lt;i&gt;n&lt;/i&gt;-1) ]&lt;br /&gt;&lt;br /&gt;&lt;b&gt;end&lt;/b&gt; factorial&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;br /&gt;A &lt;a href="http://en.wikipedia.org/wiki/Recurrence_relation" title="Recurrence relation"&gt;recurrence relation&lt;/a&gt; is an equation that relates later terms in the sequence to earlier terms&lt;sup id="cite_ref-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-5" title=""&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;Recurrence relation for factorial:&lt;br /&gt;b&lt;sub&gt;n&lt;/sub&gt; = n * b&lt;sub&gt;n-1&lt;/sub&gt;&lt;br /&gt;b&lt;sub&gt;0&lt;/sub&gt; = 1&lt;/p&gt; &lt;table class="wikitable"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Computing the recurrence relation for n = 4:&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;pre&gt;b&lt;sub&gt;4&lt;/sub&gt;           = 4 * b&lt;sub&gt;3&lt;/sub&gt;&lt;br /&gt;            = 4 * 3 * b&lt;sub&gt;2&lt;/sub&gt;&lt;br /&gt;            = 4 * 3 * 2 * b&lt;sub&gt;1&lt;/sub&gt;&lt;br /&gt;            = 4 * 3 * 2 * 1 * b&lt;sub&gt;0&lt;/sub&gt;&lt;br /&gt;            = 4 * 3 * 2 * 1 * 1&lt;br /&gt;            = 4 * 3 * 2 * 1&lt;br /&gt;            = 4 * 3 * 2&lt;br /&gt;            = 4 * 6&lt;br /&gt;            = 24&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;Example Implementations:&lt;/p&gt; &lt;table class="wikitable"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th&gt;&lt;a href="http://en.wikipedia.org/wiki/Scheme_%28programming_language%29" title="Scheme (programming language)"&gt;Scheme&lt;/a&gt; (recursive)&lt;/th&gt; &lt;th&gt;&lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt; (recursive)&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;div dir="ltr" style="text-align: left;"&gt; &lt;pre class="source-scheme"&gt;&lt;span class="co1"&gt;;; Input: Integer n such that n &gt;= 0&lt;/span&gt;&lt;br /&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw1"&gt;define&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt;fact n&lt;span class="br0"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw1"&gt;if&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt;= n &lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;br /&gt;     &lt;span class="nu0"&gt;1&lt;/span&gt;&lt;br /&gt;     &lt;span class="br0"&gt;(&lt;/span&gt;* n &lt;span class="br0"&gt;(&lt;/span&gt;fact &lt;span class="br0"&gt;(&lt;/span&gt;- n &lt;span class="nu0"&gt;1&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;/pre&gt;&lt;/div&gt; &lt;/td&gt; &lt;td&gt; &lt;div dir="ltr" style="text-align: left;"&gt; &lt;pre class="source-c"&gt;&lt;span class="co1"&gt;//INPUT: n is an integer such that n &gt;= 0&lt;/span&gt;&lt;br /&gt;&lt;span class="kw4"&gt;int&lt;/span&gt; fact&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;int&lt;/span&gt; n&lt;span class="br0"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;br /&gt;  &lt;span class="kw1"&gt;if&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt;n == &lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;br /&gt;     &lt;span class="kw1"&gt;return&lt;/span&gt; &lt;span class="nu0"&gt;1&lt;/span&gt;;&lt;br /&gt;  &lt;span class="kw1"&gt;else&lt;/span&gt;&lt;br /&gt;     &lt;span class="kw1"&gt;return&lt;/span&gt; n * fact&lt;span class="br0"&gt;(&lt;/span&gt;n - &lt;span class="nu0"&gt;1&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span class="br0"&gt;}&lt;/span&gt; &lt;/pre&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-2099366147105526567?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/2099366147105526567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=2099366147105526567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2099366147105526567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2099366147105526567'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-jan.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3383429366593111072</id><published>2009-01-10T13:34:00.000-08:00</published><updated>2009-01-18T01:40:04.182-08:00</updated><title type='text'>Learnings (lorebeth)</title><content type='html'>January 10,2009&lt;br /&gt;&lt;br /&gt;We had discussed about recursion, even though  it is hard to understand but still I'm trying my best.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;Recursion defined&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The repetitive process by which a functions calls itself  is called recursion or circular definition.&lt;br /&gt;This is a way of defining something in terms of itself.&lt;br /&gt;A function is said to be recursive if a statement in the body of the function calls the function that contains it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Parts of the Recursive function&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Base Case&lt;br /&gt;This is the part of the recursive function that is found on the if clause. This contains the condition that should be satisfied at one point of execution to terminate the repetitive process done by the recursive function. &lt;br /&gt;&lt;br /&gt;General Case&lt;br /&gt;This is the part of the recursive function that is found on the else-clause. This contains the function call of the recursive function to itself.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: rgb(51, 51, 255);"&gt;Recursion in computer science&lt;/b&gt; is a way of thinking about and solving problems. It is, in fact, one of the central ideas of computer science. &lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-0" title=""&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Solving a problem using recursion means the solution depends on solutions to smaller instances of the same problem. &lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-1" title=""&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; &lt;blockquote&gt; &lt;p&gt;"The power of recursion evidently lies in the possibility of defining an infinite set of objects by a finite statement. In the same manner, an infinite number of computations can be described by a finite recursive program, even if this program contains no explicit repetitions." &lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Recursion_%28computer_science%29#cite_note-2" title=""&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Most high-level computer programming languages support recursion by allowing a function to call itself within the program text. &lt;a href="http://en.wikipedia.org/wiki/Imperative_languages" title="Imperative languages" class="mw-redirect"&gt;Imperative languages&lt;/a&gt; define looping constructs like “while” and “for” loops that are used to perform repetitive actions. Some &lt;a href="http://en.wikipedia.org/wiki/Functional_languages" title="Functional languages" class="mw-redirect"&gt;functional programming languages&lt;/a&gt; do not define any looping constructs but rely solely on recursion to repeatedly call code. &lt;a href="http://en.wikipedia.org/wiki/Computability_theory_%28computer_science%29" title="Computability theory (computer science)"&gt;Computability theory&lt;/a&gt; has proven that these recursive only languages are mathematically equivalent to the imperative languages, meaning they can solve the same kinds of problems even without the typical control structures like “while” and “for”.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3383429366593111072?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3383429366593111072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3383429366593111072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3383429366593111072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3383429366593111072'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-lorebeth_10.html' title='Learnings (lorebeth)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2588112196787111274</id><published>2009-01-10T11:07:00.000-08:00</published><updated>2009-01-10T23:12:07.659-08:00</updated><title type='text'>January  5 - 9, 2009</title><content type='html'>&lt;div style="text-align: center; font-family: arial;"&gt;  &lt;span style="color: rgb(255, 153, 255);"&gt; LEARNINGS OF THE WEEK&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;By: Cielito M. Cantero&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;IV - Rizal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;This week we discussed about recursion.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 180%; color: rgb(102, 255, 153);"&gt;*&lt;b&gt;RECURSION&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 255, 153);"&gt;- defined as the repetitive process by which a function calls itself. It is also termed as the &lt;/span&gt;&lt;b style="color: rgb(102, 255, 153);"&gt;CIRCULAR DEFINITION&lt;/b&gt;&lt;span style="color: rgb(102, 255, 153);"&gt;. Recursion is also a programming technique where a routine performs its task by delegating part of it to another instance of itself.&lt;/span&gt;&lt;br /&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;For example in this program segment:&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;Factorial (int n)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;{&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;If (n==1||n==0) return 1;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;else return (n * factorial (n-1));&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;}&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt;            &lt;/span&gt;In this program segment, it illustrates a function containing a call to it. The lines else return (n * factorial (n-1)); contains the function call for the factorial function.&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;The parts of the recursive function include the &lt;span style="font-style: italic; font-weight: bold;"&gt;Base Case&lt;/span&gt;. The base case can be found in the “if clause”. It contains the condition that should be satisfied at one point of execution to terminate the repetitive process done be the recursive function. And the other part of the recursive function is the &lt;b style=""&gt;&lt;span style="font-style: italic;"&gt;General Case&lt;/span&gt;. &lt;/b&gt;The general case can be located on the “else-clause”. It contains the function call of the recursive function to itself.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal; color: rgb(102, 255, 153);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;&lt;span style=""&gt; &lt;/span&gt;The &lt;b style="font-style: italic;"&gt;Direct Recursion&lt;/b&gt; is a recursive functions that can call itself through a function call directly inside the body of the function. While the second type of recursion is the indirect recursion. The &lt;b style="font-style: italic;"&gt;Indirect Recursion&lt;/b&gt; is a recursive functions that can call another function outside its function.&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;And we also have an activity regarding the lesson...&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: 0.5in; line-height: normal; color: rgb(102, 255, 153);"&gt;hehe,. =)&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-2588112196787111274?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/2588112196787111274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=2588112196787111274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2588112196787111274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2588112196787111274'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/january-5-9-2009.html' title='January  5 - 9, 2009'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3933718270041976963</id><published>2009-01-09T22:19:00.000-08:00</published><updated>2009-01-16T23:44:39.849-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color:#ffffff;"&gt;Steffany Queen P. Bigoy&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc33cc;"&gt;RECURSION.Well, we have activities regarding the recursion. Mr. Balbuena teaches this lesson well, but in our the activity given, we have encountered some difficulties in running our program. &lt;em&gt;God! napaka-hirap talaga 'nun.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;p align="center"&gt;Here's some of our discussions:&lt;br /&gt;&lt;br /&gt;Recursion is repetitive process by which a function calls itself. It is also termed as the circular.&lt;br /&gt;&lt;em&gt;&lt;span style="color:#006600;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="color:#333399;"&gt;&lt;em&gt;&lt;span style="color:#cc33cc;"&gt;The Direct Recursion&lt;/span&gt;&lt;/em&gt; is a recursive functions that can call itself through a function call directly inside the body of the function. While the second type of recursion is the indirect recursion. The &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#333399;"&gt;&lt;span style="color:#cc33cc;"&gt;&lt;em&gt;Indirect Recursion&lt;/em&gt;&lt;/span&gt; is a recursive functions that can call another function outside its function.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#333399;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#333399;"&gt;For example in this program segment:&lt;br /&gt;Factorial (int n)&lt;br /&gt;{&lt;br /&gt;If (n==1n==0) return 1;&lt;br /&gt;else return (n * factorial (n-1));&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#333399;"&gt;In this program segment, it illustrates a function containing a call to it. The lines else return (n * factorial (n-1)); contains the function call for the factorial function.&lt;br /&gt;The parts of the recursive function include the Base Case. The base case can be found in the “if clause”. It contains the condition that should be satisfied at one point of execution to terminate the repetitive process done be the recursive function. And the other part of the recursive function is the General Case. The general case can be located on the “else-clause”. It contains the function call of the recursive function to itself.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;span style="color:#333399;"&gt;Most high-level computer programming languages support recursion by allowing a function to call itself within the program text. &lt;/span&gt;&lt;a class="mw-redirect" title="Imperative languages" style="COLOR: rgb(0,153,0)" href="http://en.wikipedia.org/wiki/Imperative_languages"&gt;&lt;span style="color:#333399;"&gt;Imperative languages&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#333399;"&gt; define looping constructs like “while” and “for” loops that are used to perform repetitive actions. Some &lt;/span&gt;&lt;a class="mw-redirect" title="Functional languages" style="COLOR: rgb(0,153,0)" href="http://en.wikipedia.org/wiki/Functional_languages"&gt;&lt;span style="color:#333399;"&gt;functional programming languages&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#333399;"&gt; do not define any looping constructs but rely solely on recursion to repeatedly call code. &lt;/span&gt;&lt;a title="Computability theory (computer science)" style="COLOR: rgb(0,153,0)" href="http://en.wikipedia.org/wiki/Computability_theory_(computer_science)"&gt;&lt;span style="color:#333399;"&gt;Computability theory&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#333399;"&gt; has proven that these recursive only languages are mathematically equivalent to the imperative languages, meaning they can solve the same kinds of problems even without the typical control structures like “while” and “for”....Ü&lt;/span&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;br /&gt;&lt;span style="color:#cc9933;"&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;span style="color:#cc9933;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3933718270041976963?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3933718270041976963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3933718270041976963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3933718270041976963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3933718270041976963'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week_09.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-650981310286595053</id><published>2009-01-03T19:18:00.000-08:00</published><updated>2009-01-10T19:23:35.964-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Dec.29 - Jan.2)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Its still our christmas vacation this week. And this thursday, we're going to face the start of new year!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Welcome year of the ox!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;Happy New Year!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Welcome 2009!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;And next week, we'll going to start our classes for 2009!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;Happy Vacation!:)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-650981310286595053?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/650981310286595053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=650981310286595053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/650981310286595053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/650981310286595053'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week-dec.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5415491018155898183</id><published>2009-01-02T13:30:00.000-08:00</published><updated>2009-01-02T13:30:10.694-08:00</updated><title type='text'>Learnings- Lorebeth</title><content type='html'>&lt;span style="color: rgb(204, 153, 51);"&gt;December 29-January 2, 2009&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 153, 51);"&gt;Christmas is finished but it's a Happy 100x New year guys.....................&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 153, 51);"&gt;Lets welcome the 2009 which is the year of the OX with a big S.M.I.L.E.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 153, 51);"&gt;Opps! Vacation will be finish and say "hello" to class.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 153, 51);"&gt;I just read this one:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;h3&gt;Auto-increment and Auto-decrement Operators&lt;/h3&gt;&lt;br /&gt;- instead of using  i = i+1 use equivalent statement  i++&lt;br /&gt;- similarly j = j-1 can be written as j--&lt;br /&gt;- similarly a = a+b can be written as a += b&lt;br /&gt;- similarly c = c-d can be written as c -= d&lt;br /&gt;- similar compact forms for * / and % exist&lt;br /&gt;- this results in shorter (and often faster) code&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5415491018155898183?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5415491018155898183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5415491018155898183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5415491018155898183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5415491018155898183'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-lorebeth.html' title='Learnings- Lorebeth'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-698912941890189787</id><published>2009-01-01T20:02:00.001-08:00</published><updated>2009-01-01T20:02:59.389-08:00</updated><title type='text'>learnings</title><content type='html'>3rd grading has started…&lt;br /&gt;&lt;br /&gt;We started the week with an assignment in programming about iterative statements.&lt;br /&gt;&lt;br /&gt;Each group was given different problems that must be reported by group also the next day.&lt;br /&gt;&lt;br /&gt;We we’re so nervous because we don’t know how to answer our problem. But thanks to our classmates, we solve our problem because of their help.&lt;br /&gt;&lt;br /&gt;Luckily, I’m not the one who was chosen to report our problem…yipeey!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-698912941890189787?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/698912941890189787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=698912941890189787' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/698912941890189787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/698912941890189787'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings.html' title='learnings'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-702263329882202367</id><published>2009-01-01T19:25:00.000-08:00</published><updated>2009-01-01T19:25:04.741-08:00</updated><title type='text'>Learnings  (lorebeth betinol)</title><content type='html'>Bakit hindi ako maka post ????&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-702263329882202367?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/702263329882202367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=702263329882202367' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/702263329882202367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/702263329882202367'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-lorebeth-betinol.html' title='Learnings  (lorebeth betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-4403440143556102446</id><published>2009-01-01T16:30:00.000-08:00</published><updated>2009-01-16T22:12:20.374-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-size:130%;color:#ffffff;"&gt;Steffany Queen P. Bigoy&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-size:130%;color:#3333ff;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#3333ff;"&gt;Well, i thought of not writing anymore&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#3333ff;"&gt;'learning of the week', since this week is our vacation week. !! &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#3333ff;"&gt;But i love to greet everybody a&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#3333ff;"&gt;Merry Christmas and advance Happy New Year. ! &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;By the way, 2008 is ending up so I hope&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;everybody will have a nice and happy new year. Ü &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;&lt;span style="color:#cc33cc;"&gt;And, we are going to face the 2009 or the year of the ox.&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;Do you know what's an ox like?&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;If not, just look at it.&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;i hope this year will have a good fortune for everybody.!&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;So Godbless and Take care.!&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#006600;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-4403440143556102446?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/4403440143556102446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=4403440143556102446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4403440143556102446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4403440143556102446'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-of-week.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2752871692974082956</id><published>2008-12-27T21:01:00.000-08:00</published><updated>2009-01-01T21:05:48.793-08:00</updated><title type='text'>Learnings (BETINOL, lorebeth)</title><content type='html'>&lt;span style="color: rgb(51, 0, 0);"&gt;December 22- 26&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 0);"&gt;No more class, its...... (ehem.. ehemmm.)whatt time is it..  its Christmas Vacation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 0);"&gt;Happy Christmas to everyone.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 0);"&gt;Still learning:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;h3&gt;The do-while Statement&lt;/h3&gt;&lt;br /&gt;- the do-while loop puts Boolean expression after the body of loop&lt;br /&gt;- body will be always executed at least once&lt;br /&gt;- if Boolean expression is TRUE, the loop will continue&lt;br /&gt;- useful for selected applications&lt;br /&gt;- example: read input and check if valid&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;h3&gt;Nested Loops&lt;/h3&gt; - often necessary for one loop to include another loop to solve a problem - need separate initializations, Boolean expressions, and increments &lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-2752871692974082956?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/2752871692974082956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=2752871692974082956' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2752871692974082956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2752871692974082956'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-betinol-lorebeth.html' title='Learnings (BETINOL, lorebeth)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6683093015753764760</id><published>2008-12-27T20:42:00.001-08:00</published><updated>2009-01-10T20:34:28.516-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;LEARNINGS OF THE WEEK (Dec.  22-26)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;yEehEey! it’s the stArt of x-mAs vAcatiOn alReadY!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;..itS so happy and fun here!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;..just resting and watching tv!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;..suliton sa ang panahon!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;..hehe!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;..mErry x-mas 2 all!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;..&amp;amp; happy b-day Jesus!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;..mwAAAAhh!xD&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6683093015753764760?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6683093015753764760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6683093015753764760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6683093015753764760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6683093015753764760'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week-dec_27.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6925369984748949061</id><published>2008-12-27T10:38:00.000-08:00</published><updated>2008-12-27T10:38:00.539-08:00</updated><title type='text'>December 22 - 26, 2008</title><content type='html'>By: Cielito M. Cantero&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Santa Claus is coming to town!!!&lt;br /&gt;&lt;br /&gt;Christmas na!!!&lt;br /&gt;&lt;br /&gt;wLa nay learnings of the week ouie…&lt;br /&gt;&lt;br /&gt;reSt muna…&lt;br /&gt;&lt;br /&gt;oras na pwa mg-hapi2…&lt;br /&gt;&lt;br /&gt;it’s Jesus Christ b-Day…&lt;br /&gt;&lt;br /&gt;merry cHristmas 2 ol…&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;eNjoy au…&lt;br /&gt;&lt;br /&gt;:-)  (n_n)  (^_^)  (--,)  :o)  :oD&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6925369984748949061?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6925369984748949061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6925369984748949061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6925369984748949061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6925369984748949061'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/december-22-26-2008.html' title='December 22 - 26, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1755307562697079057</id><published>2008-12-26T15:10:00.000-08:00</published><updated>2009-01-17T00:27:20.281-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;&lt;strong&gt;Steffany Queen P. Bigoy&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;CHRISTMAS WEEK. Ü&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1755307562697079057?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1755307562697079057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1755307562697079057' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1755307562697079057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1755307562697079057'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week_26.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5337241758305861746</id><published>2008-12-21T10:28:00.000-08:00</published><updated>2008-12-22T22:37:56.436-08:00</updated><title type='text'>December 15 - 19, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ReUnion… (hehehe)&lt;br /&gt;&lt;br /&gt;We finally met our TLE teacher, Sir Ernie Balbuena, this week…&lt;br /&gt;&lt;br /&gt;After so many days he had been gone, he finally showed up…&lt;br /&gt;&lt;br /&gt;Because it’s a reunion we must be very happy…but it’s not…&lt;br /&gt;&lt;br /&gt;We didn’t discussed new lesson but instead we have activity about function call again…&lt;br /&gt;&lt;br /&gt;It was a surprise activity…and we don’t expect it!&lt;br /&gt;&lt;br /&gt;But still, because of our intelligence (atik…), we still manage to solve it…&lt;br /&gt;&lt;br /&gt;And also, this week, we are celebrating our CHRISTMAS PARTY!!!&lt;br /&gt;&lt;br /&gt;But unfortunately, I wasn’t able to attend it because our family has important matter to do…&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;huhuhu…&lt;br /&gt;&lt;br /&gt;saYang!!!&lt;br /&gt;&lt;br /&gt;laSt parTy na sNa….(T_T)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5337241758305861746?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5337241758305861746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5337241758305861746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5337241758305861746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5337241758305861746'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/december-15-19-2008.html' title='December 15 - 19, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1823187588030799939</id><published>2008-12-20T20:37:00.000-08:00</published><updated>2009-01-10T20:33:21.027-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Dec.  15-19)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;This week, we had an activity all about Function Call again.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 204, 204);"&gt;Huhuhu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204);"&gt;I only got 80!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;Its because of the last minute changing of ideas!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;..but still, its okay ‘coz we celebrated our Christmas Party on 19th, though its not so fun, I just got contented about it after receiving my gift from Aubrey!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;..oOopZzZ!:)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1823187588030799939?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1823187588030799939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1823187588030799939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1823187588030799939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1823187588030799939'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week-dec_20.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8366260675876911929</id><published>2008-12-20T17:48:00.000-08:00</published><updated>2009-01-17T00:25:36.715-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-size:130%;color:#ffffff;"&gt;&lt;strong&gt;Steffany Queen P. Bigoy&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;Well, our teacher has finally showed up,&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt; the he gave us activity. And luckily, we had solved it. Ü&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8366260675876911929?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8366260675876911929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8366260675876911929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8366260675876911929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8366260675876911929'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week_20.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5402870401607490727</id><published>2008-12-20T16:53:00.000-08:00</published><updated>2009-01-01T21:00:53.933-08:00</updated><title type='text'>Learnings ( LOREBETH  BETINOL)</title><content type='html'>December 15-19&lt;br /&gt;&lt;br /&gt;Teachers day had passed so, Mr. Balbuena gave us an activity this time which I'm not prepared of.&lt;br /&gt;&lt;br /&gt;It's the turn of batch one to shine, I mean to do the activity Our teacher shuffled the usual seats I do not know why..&lt;br /&gt;&lt;br /&gt;One of our classmate do it as fast as a lightning (*charr....) maybe because he really has a talent..&lt;br /&gt;&lt;br /&gt;But me ... I have Nothing.&lt;br /&gt;&lt;br /&gt;Even though I'm not prepared but still i got an average score.&lt;br /&gt;&lt;br /&gt;Hey! This Friday will be our Christmas Party.. Thank God.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 153, 51);"&gt;I'm still learning..&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5402870401607490727?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5402870401607490727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5402870401607490727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5402870401607490727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5402870401607490727'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-lorebeth-betinol.html' title='Learnings ( LOREBETH  BETINOL)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1245049800188879047</id><published>2008-12-13T20:37:00.000-08:00</published><updated>2009-01-10T20:32:25.719-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Dec.  8-12)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;This week, we don’t also have a continuous class because teachers were still busy doing something.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;We were just tasked by Sir Ernie to study the reports of the previous activities.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;Hmmmm..maybe were having another activity..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Luckily, I thought something.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;But still,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;Hehehe..Christmas Party is already coming next week!..yeEeEhEy!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1245049800188879047?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1245049800188879047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1245049800188879047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1245049800188879047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1245049800188879047'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week-dec_13.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-414670504187414168</id><published>2008-12-13T13:26:00.000-08:00</published><updated>2009-01-17T00:21:45.525-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-size:130%;"&gt;Steffany Queen P. Bigoy&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="color:#ffff00;"&gt;We are just reporting this week. ! Ü&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-414670504187414168?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/414670504187414168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=414670504187414168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/414670504187414168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/414670504187414168'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week_13.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5422741012903002493</id><published>2008-12-13T11:44:00.000-08:00</published><updated>2009-01-01T20:52:24.349-08:00</updated><title type='text'>Learnings (BETINOL, lorebeth)</title><content type='html'>December8-12&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;This week, we don’t also have a continuous class because teachers were still busy doing something.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;br /&gt;We were just tasked by Sir Ernie to study the reports of the previous activities.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;br /&gt;This week is the teachers day, i think that is the reason why they are busy so much... &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;br /&gt;Thanks to my classmates who reported and   I knew something.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Which are the:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;h3&gt;Common Errors&lt;/h3&gt;&lt;br /&gt;- extra semicolon after for (..) or while (..) causes zero line infinite loop&lt;br /&gt;- counters (and other variables) not properly initialized&lt;br /&gt;- Boolean expression will never become FALSE (infinite loop)&lt;br /&gt;- loop executes incorrect number of times (off by one common)&lt;br /&gt;- never update for loop counter variable inside for loop&lt;br /&gt;- never use same counter variable for nested loops&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5422741012903002493?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5422741012903002493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5422741012903002493' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5422741012903002493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5422741012903002493'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2009/01/learnings-betinol-lorebeth.html' title='Learnings (BETINOL, lorebeth)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7117917337777440498</id><published>2008-12-13T08:21:00.000-08:00</published><updated>2008-12-22T22:28:09.857-08:00</updated><title type='text'>December 8 - 12, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;No cLass aGaiN…!&lt;br /&gt;&lt;br /&gt;This week, teachers were so busy again and I don’t know why…&lt;br /&gt;&lt;br /&gt;Maybe, because they’re doing some of their reports…&lt;br /&gt;&lt;br /&gt;But still, we were tasked by our teacher to study the reports of our classmates in our activity last week…&lt;br /&gt;&lt;br /&gt;And in the end, I still learned something about programming…&lt;br /&gt;&lt;br /&gt;Thanks to my classmates who helped me…! (char!)&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;tHat’s aLL…&lt;br /&gt;&lt;br /&gt;tnx… (--,)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7117917337777440498?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7117917337777440498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7117917337777440498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7117917337777440498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7117917337777440498'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/december-8-12-2008.html' title='December 8 - 12, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1330377258172151722</id><published>2008-12-07T10:11:00.000-08:00</published><updated>2008-12-22T22:20:03.442-08:00</updated><title type='text'>December 1 - 5, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;aNotHer nO No nO cLass!!!&lt;br /&gt;&lt;br /&gt;Teachers’ Day is coming to town!!&lt;br /&gt;&lt;br /&gt;We don’t have class in TLE this week because it’s teachers’ day…&lt;br /&gt;&lt;br /&gt;Teachers were so busy practicing their presentation for their day…&lt;br /&gt;&lt;br /&gt;Our TLE teacher, Sir Ernie Balbuena is one of the teachers participating the dance contest that will be held in the Tagum Trade Center…&lt;br /&gt;&lt;br /&gt;Sir Ernie’s team done their best…And they got the 2nd place…&lt;br /&gt;&lt;br /&gt;Next week, classes will be back to normal…&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;huhuhu..&lt;br /&gt;&lt;br /&gt;hehehe pala….&lt;br /&gt;&lt;br /&gt;(“,)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1330377258172151722?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1330377258172151722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1330377258172151722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1330377258172151722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1330377258172151722'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/december-1-5-2008.html' title='December 1 - 5, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1252264990950593079</id><published>2008-12-07T09:24:00.000-08:00</published><updated>2009-01-17T00:19:25.513-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="font-size:130%;color:#ffffff;"&gt;Steffany Queen P. Bigoy&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt;Sir Ernie joining the dance contest? &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt;Oh my God!! I cant imagine it. !! lol. Actually,&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt; its Teacher's Day thats why we dont have c&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt;lasses and again, dont have&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt; learnings for this dweek. ! Ü &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1252264990950593079?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1252264990950593079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1252264990950593079' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1252264990950593079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1252264990950593079'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-5756510093611221230</id><published>2008-12-06T20:29:00.000-08:00</published><updated>2009-01-10T20:31:18.434-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Dec.1-5)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;This week, we don’t really have a continuous class this is because of the preparation for the Teacher’s Day!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Students and Teachers were so busy preparing presentations for this day.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;And Take Note: Sir Ernie is preparing his dance number, together with his co-teachers for the said event.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;Hehehe!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-5756510093611221230?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/5756510093611221230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=5756510093611221230' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5756510093611221230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/5756510093611221230'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week-dec.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7347316826175490427</id><published>2008-12-06T10:39:00.000-08:00</published><updated>2009-01-01T20:44:34.494-08:00</updated><title type='text'>Learnings (BETINOL)</title><content type='html'>&lt;span style="font-style: italic;"&gt;December1-5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Actually we don't have a class seriously because .. it is teachers day!!&lt;br /&gt;&lt;br /&gt;Our TLE teacher is included in the dance contest so some of the reporters are task to report since we don't have a teacher.&lt;br /&gt;&lt;br /&gt;It as more on examples about iterative statements.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;a name="182"&gt;terative Statements&lt;/a&gt;&lt;/h3&gt;  &lt;p&gt; &lt;/p&gt;&lt;p&gt; Three types of iterative statement are provided in Magma: the  &lt;tt&gt;for&lt;/tt&gt;-statement providing definite iteration and the  &lt;tt&gt;while&lt;/tt&gt;- and &lt;tt&gt;repeat&lt;/tt&gt;-statements providing indefinite iteration. &lt;/p&gt;&lt;p&gt; Iteration may be performed over an arithmetic progression of integers or over any finite enumerated structure. Iterative statements  may be nested. If nested iterations occur over the same enumerated  structure, abbreviations such as &lt;tt&gt;for x, y in X do&lt;/tt&gt; may be used;  the leftmost identifier will correspond to the outermost loop, etc.  (For nested iteration in sequence constructors, see Chapter &lt;a href="http://magma.maths.usyd.edu.au/magma/htmlhelp/text194.htm#809"&gt;SEQUENCES&lt;/a&gt;.) &lt;/p&gt;&lt;p&gt; Early termination of the body of loop may be specified through use of the `jump' commands &lt;tt&gt;break&lt;/tt&gt; and &lt;tt&gt;continue&lt;/tt&gt;.    &lt;/p&gt;&lt;h5&gt;Subsections&lt;/h5&gt; &lt;ul&gt;&lt;li&gt; &lt;a href="http://magma.maths.usyd.edu.au/magma/htmlhelp/text114.htm#183"&gt;Definite Iteration&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a href="http://magma.maths.usyd.edu.au/magma/htmlhelp/text114.htm#186"&gt;Indefinite Iteration&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a href="http://magma.maths.usyd.edu.au/magma/htmlhelp/text114.htm#191"&gt;Early Exit from Iterative Statements&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7347316826175490427?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7347316826175490427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7347316826175490427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7347316826175490427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7347316826175490427'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-betinol.html' title='Learnings (BETINOL)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6744580274707353335</id><published>2008-11-30T10:03:00.000-08:00</published><updated>2008-12-22T22:10:12.120-08:00</updated><title type='text'>November 24 - 28, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;nO No nO cLass!!!&lt;br /&gt;&lt;br /&gt;Because of the Regional Press Conference that will be held in our school this week, we don’t have classes…&lt;br /&gt;&lt;br /&gt;Teachers were so busy preparing for the Press Conference…&lt;br /&gt;&lt;br /&gt;And students were also busy cleaning their respective rooms…&lt;br /&gt;&lt;br /&gt;And so, we had no class for the rest of the day…&lt;br /&gt;&lt;br /&gt;I learned nothing this week…&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;..hehe,.&lt;br /&gt;&lt;br /&gt;reSt na nMan…!!&lt;br /&gt;&lt;br /&gt;yeheey!! :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6744580274707353335?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6744580274707353335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6744580274707353335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6744580274707353335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6744580274707353335'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/november-24-28-2008.html' title='November 24 - 28, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-4123558034800652065</id><published>2008-11-29T20:04:00.000-08:00</published><updated>2009-01-01T20:38:59.316-08:00</updated><title type='text'>learnings (BETINOL)</title><content type='html'>November 24-28&lt;br /&gt;&lt;br /&gt;Seriously I have nothing to learned.......................because everybody is busy cleaning their classrooms, performing their own task in preparation for the regional schools press conference..&lt;br /&gt;&lt;br /&gt;it means that we don't have class most of the days.&lt;br /&gt;&lt;br /&gt;so that's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-4123558034800652065?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/4123558034800652065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=4123558034800652065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4123558034800652065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4123558034800652065'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-betinol_29.html' title='learnings (BETINOL)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8448125055010271432</id><published>2008-11-28T18:35:00.000-08:00</published><updated>2009-01-17T00:14:54.169-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;div align="center"&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#ffffff;"&gt;Steffany Queen P. Bigoy&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#ffffff;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;Regional Press Conference. This is the reason&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt; why we dont havr classes&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffcc00;"&gt;and basically no learnings.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8448125055010271432?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8448125055010271432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8448125055010271432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8448125055010271432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8448125055010271432'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week_28.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6720871387542262318</id><published>2008-11-25T20:25:00.000-08:00</published><updated>2009-01-10T20:30:01.665-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Nov. 24-28)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;This week,  I learned nothing because we were busy cleaning our respective rooms and the teachers were also busy preparing for the event.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; This is due to the Regional Press Conference that was held in our school.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Meaning, we had no class for several days.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 153);"&gt;..yEEEhEEEEy!!:)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6720871387542262318?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6720871387542262318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6720871387542262318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6720871387542262318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6720871387542262318'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week-nov_25.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-4703444229113616852</id><published>2008-11-22T20:16:00.000-08:00</published><updated>2009-01-10T20:29:02.698-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Nov. 17-21)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 204, 204);"&gt;This week, we discussed about Function Calls. He also taught us how t use them.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 204, 204);"&gt;But what does Function Call really mean?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Function call operator ( )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;A function call is an expression containing the function name followed by the function call operator, (). If the function has been defined to receive parameters, the values that are to be sent into the function are listed inside the parentheses of the function call operator. The argument list can contain any number of expressions separated by commas. It can also be empty.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;The type of a function call expression is the return type of the function. This type can either be a complete type, a reference type, or the type void.  A function call expression is always an rvalue.  A function call is an lvalue if and only if the type of the function is a reference.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Here are some examples of the function call operator: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;stub()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;overdue(account, date, amount)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;notify(name, date + 5)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;report(error, time, date, ++num)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;The order of evaluation for function call arguments is not specified. In the following example: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;method(sample1, batch.process--, batch.process);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;the argument batch.process-- might be evaluated last, causing the last two arguments to be passed with the same value.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Below is also another explanation of Function and Parameters.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;A function is similar to a subroutine (Gosub) except that it can accept parameters (inputs) from its caller. In addition, a function may optionally return a value to its caller. Consider the following simple function which accepts two numbers and returns their sum:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Add(x, y)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;    return x + y   ; "Return" expects an expression.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;The above is known as a function definition because it creates a function named "Add" (not case sensitive) and establishes that anyone who calls it must provide exactly two parameters (x and y). To call the function, assign its result to a variable with the := operator. For example:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Var := Add(2, 3)  ; The number 5 will be stored in Var.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Also, a function may be called without storing its return value:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Add(2, 3)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;But in this case, any value returned by the function is discarded; so unless the function produces some effect other than its return value, the call would serve no purpose.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Since a function call is an expression, any variable names in its parameter list should not be enclosed in percent signs. By contrast, literal strings should be enclosed in double quotes. For example:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;if InStr(MyVar, "fox")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;    MsgBox The variable MyVar contains the word fox.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;In v1.0.47.06+, a function (even a built-in function) may be called dynamically via percent signs. For example, %Var%(x, "fox") would call the function whose name is contained in Var. Similarly, Func%A_Index%() would call Func1() or Func2(), etc., depending on the current value of A_Index. The called function's definition must exist explicitly in the script by means such as #Include or a non-dynamic call to a library containing the function. If the function does not exist -- or if the wrong number or type of parameters is passed to it -- the expression containing the call produces an empty string.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Finally, functions may be called in the parameters of any command (except OutputVar and InputVar parameters such as those of StringLen). However, parameters that do not support expressions must use the "% " prefix as in this example:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;MsgBox % "The answer is: " . Add(3, 2)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;The "% " prefix is also permitted in parameters that natively support expressions, but it is simply ignored.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Parameters&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;When a function is defined, its parameters are listed in parentheses next to its name (there must be no spaces between its name and the open-parenthesis). If a function does not accept any parameters, leave the parentheses empty; for example: GetCurrentTimestamp().&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;ByRef Parameters: From the function's point of view, parameters are essentially the same as local variables unless they are defined as ByRef as in this example:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Swap(ByRef Left, ByRef Right)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;    temp := Left&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;    Left := Right&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;    Right := temp&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;In the example above, the use of ByRef causes each parameter to become an alias for the variable passed in from the caller. In other words, the parameter and the caller's variable both refer to the same contents in memory. This allows the Swap function to alter the caller's variables by moving Left's contents into Right and vice versa.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;By contrast, if ByRef were not used in the example above, Left and Right would be copies of the caller's variables and thus the Swap function would have no external effect.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Since return can send back only one value to a function's caller, ByRef can be used to send back extra results. This is achieved by having the caller pass in a variable (usually empty) in which the function stores a value.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;When passing large strings to a function, ByRef enhances performance and conserves memory by avoiding the need to make a copy of the string. Similarly, using ByRef to send a long string back to the caller usually performs better than something like Return HugeString.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Known limitations:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;• It is not possible to pass Clipboard, built-in variables, or environment variables to a function's ByRef parameter, even when #NoEnv is absent from the script. Passing a built-in variable to a ByRef parameter causes an error dialog to be displayed.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;• Although a function may call itself recursively, if it passes one of its own local variables or non-ByRef parameters to itself ByRef, the new layer's ByRef parameter will refer to its own local variable of that name rather than the previous layer's. However, this issue does not occur when a function passes to itself a global variable, static variable, or ByRef parameter.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;• If a parameter in a function-call resolves to a variable (e.g. Var or ++Var or Var*=2), other parameters to its left or right can alter that variable before it is passed to the function. For example, func(Var, Var++) would unexpectedly pass 1 and 0 when Var is initially 0, even when the function's first parameter is not ByRef. Since this behavior is counterintuitive, it might change in a future release.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Optional Parameters&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;When defining a function, one or more of its parameters can be marked as optional. This is done by appending an equal sign followed by a default value. The following function has its Z parameter marked optional:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Add(X, Y, Z = 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;    return X + Y + Z&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;When the caller passes three parameters to the function above, Z's default value is ignored. But when the caller passes only two parameters, Z automatically receives the value 0.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;It is not possible to have optional parameters isolated in the middle of the parameter list. In other words, all parameters that lie to the right of the first optional parameter must also be marked optional.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;In v1.0.46.13+, ByRef parameters also support default values; for example: Func(ByRef p1 = ""). Whenever the caller omits such a parameter, the function creates a local variable to contain the default value; in other words, the function behaves as though the keyword "ByRef" is absent.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;A parameter's default value must be one of the following: true, false, a literal integer, a literal floating point number, or a quoted/literal string such as "fox" or "" (but versions prior to 1.0.46.13+ allow only "").&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-4703444229113616852?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/4703444229113616852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=4703444229113616852' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4703444229113616852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4703444229113616852'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/12/learnings-of-week-nov.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2037952466991447373</id><published>2008-11-22T18:51:00.000-08:00</published><updated>2008-12-22T22:03:26.046-08:00</updated><title type='text'>November 17 - 21, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Function Call???&lt;br /&gt;&lt;br /&gt;If Mathematics has Functions, Computer Programming has Function Calls…&lt;br /&gt;&lt;br /&gt;Function Call is the one that calls the function in doing its specified tasks…&lt;br /&gt;&lt;br /&gt;We also tackled about the actual and formal parameters this week…&lt;br /&gt;&lt;br /&gt;Below is the deeper explanation about the Function Call:&lt;br /&gt;&lt;br /&gt;Most languages allow you to create functions of some sort. Functions let you chop up a long program into named sections so that the sections can be reused throughout the program. Functions accept parameters and return a result. C functions can accept an unlimited number of parameters. In general, C does not care in what order you put your functions in the program, so long as a the function name is known to the compiler before it is called. &lt;br /&gt;&lt;br /&gt;We have already talked a little about functions. The rand function seen previously is about as simple as a function can get. It accepts no parameters and returns an integer result: &lt;br /&gt;&lt;br /&gt;int rand()&lt;br /&gt;/* from K&amp;R&lt;br /&gt;   - produces a random number between 0 and 32767.*/&lt;br /&gt;{&lt;br /&gt;    rand_seed = rand_seed * 1103515245 +12345;&lt;br /&gt;    return (unsigned int)(rand_seed / 65536) % 32768;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The int rand() line declares the function rand to the rest of the program and specifies that rand will accept no parameters and return an integer result. This function has no local variables, but if it needed locals, they would go right below the opening { (C allows you to declare variables after any { -- they exist until the program reaches the matching } and then they disappear. A function's local variables therefore vanish as soon as the matching } is reached in the function. While they exist, local variables live on the system stack.) Note that there is no ; after the () in the first line. If you accidentally put one in, you will get a huge cascade of error messages from the compiler that make no sense. Also note that even though there are no parameters, you must use the (). They tell the compiler that you are declaring a function rather than simply declaring an int. &lt;br /&gt;&lt;br /&gt;The return statement is important to any function that returns a result. It specifies the value that the function will return and causes the function to exit immediately.&lt;br /&gt;&lt;br /&gt;This means that you can place multiple return statements in the function to give it multiple exit points. If you do not place a return statement in a function, the function returns when it reaches } and returns a random value (many compilers will warn you if you fail to return a specific value). In C, a function can return values of any type: int, float, char, struct, etc. &lt;br /&gt;There are several correct ways to call the rand function. For example: x=rand();. The variable x is assigned the value returned by rand in this statement. Note that you must use () in the function call, even though no parameter is passed. Otherwise, x is given the memory address of the rand function, which is generally not what you intended. &lt;br /&gt;You might also call rand this way: &lt;br /&gt;if (rand() &gt; 100)&lt;br /&gt;Or this way: &lt;br /&gt;rand();&lt;br /&gt;In the latter case, the function is called but the value returned by rand is discarded. You may never want to do this with rand, but many functions return some kind of error code through the function name, and if you are not concerned with the error code (for example, because you know that an error is impossible) you can discard it in this way. &lt;br /&gt;Functions can use a void return type if you intend to return nothing. For example: &lt;br /&gt;&lt;br /&gt;void print_header()&lt;br /&gt;{&lt;br /&gt;    printf("Program Number 1\n");&lt;br /&gt;    printf("by Marshall Brain\n");&lt;br /&gt;    printf("Version 1.0, released 12/26/91\n");&lt;br /&gt;}&lt;br /&gt;This function returns no value. You can call it with the following statement: &lt;br /&gt;print_header();&lt;br /&gt;You must include () in the call. If you do not, the function is not called, even though it will compile correctly on many systems. &lt;br /&gt;C functions can accept parameters of any type. For example: &lt;br /&gt;int fact(int i)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;    int j,k;&lt;br /&gt;&lt;br /&gt;    j=1;&lt;br /&gt;    for (k=2; k&lt;=i; k++)&lt;br /&gt;        j=j*k;&lt;br /&gt;    return j;&lt;br /&gt;}&lt;br /&gt;returns the factorial of i, which is passed in as an integer parameter. Separate multiple parameters with commas: &lt;br /&gt;int add (int i, int j)&lt;br /&gt;{&lt;br /&gt;    return i+j;&lt;br /&gt;}&lt;br /&gt;C has evolved over the years. You will sometimes see functions such as add written in the "old style," as shown below: &lt;br /&gt;int add(i,j)&lt;br /&gt;    int i;&lt;br /&gt;    int j;&lt;br /&gt;{&lt;br /&gt;    return i+j;&lt;br /&gt;}&lt;br /&gt;It is important to be able to read code written in the older style. There is no difference in the way it executes; it is just a different notation. You should use the "new style," (known as ANSI C) with the type declared as part of the parameter list, unless you know you will be shipping the code to someone who has access only to an "old style" (non-ANSI) compiler. &lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;lisod nOh??!!&lt;br /&gt;..hahay..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-2037952466991447373?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/2037952466991447373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=2037952466991447373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2037952466991447373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2037952466991447373'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/november-17-21-2008.html' title='November 17 - 21, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3523113022258392387</id><published>2008-11-22T17:17:00.000-08:00</published><updated>2009-01-01T20:21:23.948-08:00</updated><title type='text'>Learnings - Nov. 17-21, (betinol)</title><content type='html'>&lt;span style="color: rgb(255, 255, 0);"&gt;This time  we discussed about function call.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;Here it goes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;span style="font-family:arial,helvetica;"&gt;&lt;a name="HDRFUNCALL"&gt;Function Call Operator ( )&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt; &lt;a name="IDX3289"&gt;&lt;/a&gt; &lt;a name="IDX3290"&gt;&lt;/a&gt; &lt;p&gt;A &lt;i&gt;function call&lt;/i&gt; is an expression containing a simple type name and a parenthesized argument list. The argument list can contain any number of expressions separated by commas. It can also be empty. &lt;/p&gt;&lt;p&gt;For example:  &lt;/p&gt;&lt;pre&gt;stub()&lt;br /&gt;overdue(account, date, amount)&lt;br /&gt;notify(name, date + 5)&lt;br /&gt;report(error, time, date, ++num)&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;There are two kinds of function calls: ordinary function calls and C++ member function calls. Any function may call itself except for the function &lt;tt&gt;main&lt;/tt&gt;. &lt;/p&gt;&lt;p&gt;&lt;b&gt;Type of a Function Call&lt;/b&gt; &lt;/p&gt;&lt;p&gt;The type of a function call expression is the return type of the function. This type can either be a complete type, a reference type, or the type &lt;strong&gt;void&lt;/strong&gt;. A function call is an lvalue if and only if the type of the function is a reference. &lt;/p&gt;&lt;p&gt;&lt;b&gt;Arguments and Parameters&lt;/b&gt; &lt;a name="IDX3291"&gt;&lt;/a&gt; &lt;a name="IDX3292"&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;A &lt;i&gt;function argument&lt;/i&gt; is an expression that you use within the parentheses of a function call. A &lt;i&gt;function parameter&lt;/i&gt; is an object or reference declared within the parentheses of a function declaration or definition. When you call a function, the arguments are evaluated, and each parameter is initialized with the value of the corresponding argument. The semantics of argument passing are identical to those of assignment. &lt;/p&gt;&lt;p&gt;A function can change the values of its non-const parameters, but these changes have no effect on the argument unless the parameter is a reference type. &lt;/p&gt;&lt;p&gt;&lt;b&gt;Linkage and Function Calls&lt;/b&gt; &lt;/p&gt;&lt;p&gt; &lt;img src="http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/topic/com.ibm.vacpp7l.doc/language/images/ngclang.gif" alt="C" /&gt;   &lt;a name="IDX3293"&gt;&lt;/a&gt; &lt;a name="IDX3294"&gt;&lt;/a&gt; In C, if a function definition has external linkage and a return type of &lt;strong&gt;int&lt;/strong&gt;, calls to the function can be made before it is explicitly declared because an implicit declaration of &lt;tt&gt;extern int func();&lt;/tt&gt; is assumed. This is &lt;i&gt;not&lt;/i&gt; true for C++. &lt;/p&gt;&lt;p&gt;&lt;b&gt;Type Conversions of Arguments&lt;/b&gt; &lt;/p&gt;&lt;p&gt;Arguments that are arrays or functions are converted to pointers before being passed as function arguments. &lt;/p&gt;&lt;p&gt;Arguments passed to nonprototyped C functions undergo conversions: type &lt;strong&gt;short&lt;/strong&gt; or &lt;strong&gt;char&lt;/strong&gt; parameters are converted to &lt;strong&gt;int&lt;/strong&gt;, and &lt;strong&gt;float&lt;/strong&gt; parameters to &lt;strong&gt;double&lt;/strong&gt;. Use a cast expression for other conversions. &lt;/p&gt;&lt;p&gt;The compiler compares the data types provided by the calling function with the data types that the called function expects and performs necessary type conversions. For example, when function &lt;tt&gt;funct&lt;/tt&gt; is called, argument &lt;tt&gt;f&lt;/tt&gt; is converted to a &lt;strong&gt;double&lt;/strong&gt;, and argument &lt;tt&gt;c&lt;/tt&gt; is converted to an &lt;strong&gt;int&lt;/strong&gt;:  &lt;/p&gt;&lt;pre&gt;char * funct (double d, int i);&lt;br /&gt;    /* ... */&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt;  float f;&lt;br /&gt;  char c;&lt;br /&gt;  funct(f, c) /* f is converted to a double, c is converted to an int */&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&lt;b&gt;Evaluation Order of Arguments&lt;/b&gt; &lt;/p&gt;&lt;p&gt;The order in which arguments are evaluated is not specified. Avoid such calls as:  &lt;/p&gt;&lt;pre&gt;method(sample1, batch.process--, batch.process);&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;In this example, &lt;tt&gt;batch.process--&lt;/tt&gt; might be evaluated last, causing the last two arguments to be passed with the same value. &lt;/p&gt;&lt;p&gt;&lt;b&gt;Example of Function Calls&lt;/b&gt; &lt;/p&gt;&lt;p&gt;In the following example, &lt;tt&gt;main&lt;/tt&gt; passes &lt;tt&gt;func&lt;/tt&gt; two values: &lt;tt&gt;5&lt;/tt&gt; and &lt;tt&gt;7&lt;/tt&gt;. The function &lt;tt&gt;func&lt;/tt&gt; receives copies of these values and accesses them by the identifiers: &lt;tt&gt;a&lt;/tt&gt; and &lt;tt&gt;b&lt;/tt&gt;. The function &lt;tt&gt;func&lt;/tt&gt; changes the value of &lt;tt&gt;a&lt;/tt&gt;. When control passes back to &lt;tt&gt;main&lt;/tt&gt;, the actual values of &lt;tt&gt;x&lt;/tt&gt; and &lt;tt&gt;y&lt;/tt&gt; are not changed. The called function &lt;tt&gt;func&lt;/tt&gt; only receives copies of the values of &lt;tt&gt;x&lt;/tt&gt; and &lt;tt&gt;y&lt;/tt&gt;, not the variables themselves.  &lt;/p&gt;&lt;pre&gt;/**&lt;br /&gt;** This example illustrates function calls&lt;br /&gt;**/&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;void func (int a, int b)&lt;br /&gt;{&lt;br /&gt;  a += b;&lt;br /&gt;  printf("In func, a = %d    b = %d\n", a, b);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt;  int x = 5, y = 7;&lt;br /&gt;  func(x, y);&lt;br /&gt;  printf("In main, x = %d    y = %d\n", x, y);&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;This program produces the following output:  &lt;/p&gt;&lt;pre&gt;In func, a = 12   b = 7&lt;br /&gt;In main, x = 5    y = 7&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3523113022258392387?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3523113022258392387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3523113022258392387' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3523113022258392387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3523113022258392387'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-nov-17-21-betinol.html' title='Learnings - Nov. 17-21, (betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-287519761903772913</id><published>2008-11-22T13:36:00.000-08:00</published><updated>2009-01-17T00:11:22.972-08:00</updated><title type='text'>Learnings of the Week!!</title><content type='html'>&lt;span style="color:#993300;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#993300;"&gt;Steffany Queen P. Bigoy&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#993300;"&gt;&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#993300;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#333399;"&gt;Function call? Whats that steff?, kindly explain.&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#333399;"&gt;Ok.ok, I'll explain.&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#333399;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#333399;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#333399;"&gt;Its the summary:&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#333399;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffff00;"&gt;A function call is an expression containing a simple type name and a parenthesized argument list. The argument list can contain any number of expressions separated by commas. It can also be empty.&lt;br /&gt;For example: stub()overdue(account, date, amount)notify(name, date + 5)report(error, time, date, ++num)&lt;br /&gt;There are two kinds of function calls: ordinary function calls and C++ member function calls. Any function may call itself except for the function main. &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#ffff00;"&gt;&lt;br /&gt; &lt;/div&gt;&lt;/span&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;Type of a Function Call&lt;br /&gt;The type of a function call expression is the return type of the function. This type can either be a complete type, a reference type, or the type void. A function call is an lvalue if and only if the type of the function is a reference. &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#cc33cc;"&gt;&lt;br /&gt; &lt;/div&gt;&lt;/span&gt;&lt;div align="center"&gt;&lt;span style="color:#6633ff;"&gt;Arguments and Parameters &lt;/span&gt;&lt;a name="IDX3291"&gt;&lt;/a&gt;&lt;a name="IDX3292"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#6633ff;"&gt;A function argument is an expression that you use within the parentheses of a function call. A function parameter is an object or reference declared within the parentheses of a function declaration or definition. When you call a function, the arguments are evaluated, and each parameter is initialized with the value of the corresponding argument. The semantics of argument passing are identical to those of assignment.&lt;br /&gt;A function can change the values of its non-const parameters, but these changes have no effect on the argument unless the parameter is a reference type.&lt;/span&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt; &lt;/div&gt;&lt;div align="center"&gt;&lt;span style="color:#339999;"&gt;Linkage and Function Calls&lt;br /&gt;&lt;/span&gt;&lt;a name="IDX3293"&gt;&lt;/a&gt;&lt;a name="IDX3294"&gt;&lt;/a&gt;&lt;span style="color:#339999;"&gt;In C, if a function definition has external linkage and a return type of int, calls to the function can be made before it is explicitly declared because an implicit declaration of extern int func(); is assumed. This is not true for C++. &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="color:#000066;"&gt;Type Conversions of Arguments&lt;br /&gt;Arguments that are arrays or functions are converted to pointers before being passed as function arguments.&lt;br /&gt;Arguments passed to nonprototyped C functions undergo conversions: type short or char parameters are converted to int, and float parameters to double. Use a cast expression for other conversions.&lt;br /&gt;The compiler compares the data types provided by the calling function with the data types that the called function expects and performs necessary type conversions. For example, when function funct is called, argument f is converted to a double, and argument c is converted to an int: char * funct (double d, int i); /* ... */int main(void){ float f; char c; funct(f, c) /* f is converted to a double, c is converted to an int */ return 0;}&lt;br /&gt;Evaluation Order of Arguments&lt;br /&gt;The order in which arguments are evaluated is not specified. Avoid such calls as: method(sample1, batch.process--, batch.process);&lt;br /&gt;In this example, batch.process-- might be evaluated last, causing the last two arguments to be passed with the same value. &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;span style="color:#ffff00;"&gt;Example of Function Calls&lt;br /&gt;In the following example, main passes func two values: 5 and 7. The function func receives copies of these values and accesses them by the identifiers: a and b. The function func changes the value of a. When control passes back to main, the actual values of x and y are not changed. The called function func only receives copies of the values of x and y, not the variables themselves. /**** This example illustrates function calls**/#include void func (int a, int b){ a += b; printf("In func, a = %d b = %d\n", a, b);}int main(void){ int x = 5, y = 7; func(x, y); printf("In main, x = %d y = %d\n", x, y); return 0;}&lt;br /&gt;This program produces the following output: In func, a = 12 b = 7In main, x = 5 y = 7&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-287519761903772913?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/287519761903772913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=287519761903772913' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/287519761903772913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/287519761903772913'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week.html' title='Learnings of the Week!!'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1385986109434490003</id><published>2008-11-16T08:09:00.000-08:00</published><updated>2009-01-01T20:16:53.029-08:00</updated><title type='text'>Learnings (betinol)</title><content type='html'>&lt;span style="color: rgb(204, 0, 0);"&gt;November 10-14&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;We had an individual work this time!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Seriously  I really don't know how it works but I discovered it step by step through time.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Though my work is incomplete and misplaced some marks, but still learned.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;h3&gt;The for Statement&lt;/h3&gt;&lt;br /&gt;- the for loop provides a compact syntax for iteration&lt;br /&gt;- typically used for counting loops, but can be used for any loop&lt;br /&gt;- allows you to specify the following all on one line&lt;br /&gt; 1) initialization statement(s)&lt;br /&gt; 2) Boolean expression for continuing loop&lt;br /&gt; 3) statements to be executed after loop&lt;br /&gt;&lt;br /&gt;// for loop syntax&lt;br /&gt;for ( initialization; Boolean expression ; increment )&lt;br /&gt;  {&lt;br /&gt;  statements to be repeated&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;// for loop example&lt;br /&gt;for (Num = 0; Num &lt; 10; Num = Num+1)&lt;br /&gt;  {&lt;br /&gt;  cout &lt;&lt; Num &lt;&lt; "cubed=" &lt;&lt; Num*Num*Num &lt;&lt; endl;&lt;br /&gt;  }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1385986109434490003?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1385986109434490003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1385986109434490003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1385986109434490003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1385986109434490003'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-betinol.html' title='Learnings (betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3285841520757645254</id><published>2008-11-15T20:12:00.000-08:00</published><updated>2009-01-10T20:28:10.401-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Nov. 10-14)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 51, 255);"&gt;This week, we were given another activity to solve but this time, its an individual work.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;Its just the same on our previous lessons but still it’s hard to execute the right usage of statements.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;Just like Cielito, my program did run but still its wrong.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;Better luck next time! HUHUHU&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3285841520757645254?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3285841520757645254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3285841520757645254' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3285841520757645254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3285841520757645254'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week-nov_15.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7485531800063809163</id><published>2008-11-15T10:42:00.000-08:00</published><updated>2008-12-22T21:50:23.653-08:00</updated><title type='text'>November 10 - 14, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;It’s Activity Time…!&lt;br /&gt;&lt;br /&gt;This week, we had an activity again about programming…&lt;br /&gt;&lt;br /&gt;And the problem given to us was just parallel to those problems reported in the class the last day…&lt;br /&gt;&lt;br /&gt;But even if it’s a parallel to some of the problem reported, it still takes us time to solve and answer the problem…&lt;br /&gt;&lt;br /&gt;Like the previous activities, even though my program runs, I still ended up giving the wrong answer…&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;..huhuhu..&lt;br /&gt;&lt;br /&gt;hOw saD..(T_T)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7485531800063809163?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7485531800063809163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7485531800063809163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7485531800063809163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7485531800063809163'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/november-10-14-2008.html' title='November 10 - 14, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6371548077344144066</id><published>2008-11-08T20:03:00.001-08:00</published><updated>2009-01-01T20:08:09.381-08:00</updated><title type='text'>Learnings Lorebeth Betinol</title><content type='html'>Hey! its November...&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;We started the week with an assignment in programming about iterative statements.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Each of the group is task to report a problem.&lt;br /&gt;&lt;br /&gt;This time I learned  A lot.&lt;br /&gt;&lt;br /&gt;I learned more about how important are the punctuations because it may affect the whole program.&lt;br /&gt;&lt;br /&gt;Unluckily we are the first one to report but unluckily I'm no chosen..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6371548077344144066?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6371548077344144066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6371548077344144066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6371548077344144066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6371548077344144066'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-lorebeth-betinol.html' title='Learnings Lorebeth Betinol'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6005356590138000184</id><published>2008-11-08T20:03:00.000-08:00</published><updated>2009-01-10T20:25:35.910-08:00</updated><title type='text'></title><content type='html'>&lt;div style="text-align: center; color: rgb(255, 0, 0);"&gt;LEARNINGS OF THE WEEK (Nov. 3-7)&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;By: Frea Diane T. Bautista&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(102, 51, 255);"&gt;This is the start of our 3rd grading period! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 102);"&gt;This week, each group was assigned to execute and report their respective activities. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;I learned something about how to use iterative statements because I was there when we were trying to execute the activity by ourselves. Its easy to execute but definitely hard to explain.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 153);"&gt;Unfortunately, when the reporting day came, I was the on who was told to help Lorebeth in reporting. Unluckily, we only got 85. Huhuhu&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6005356590138000184?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6005356590138000184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6005356590138000184' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6005356590138000184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6005356590138000184'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week-nov.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6438554609162275044</id><published>2008-11-08T15:45:00.000-08:00</published><updated>2009-01-16T23:59:16.825-08:00</updated><title type='text'>Learnings of the Week!! (Nov 3-7)</title><content type='html'>&lt;div align="center"&gt;&lt;span style="font-size:130%;"&gt;Steffany Queen P. Bigoy&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc33cc;"&gt;Uhhm, this week?? We just have a reporting&lt;br /&gt;assigned by our teacher.&lt;br /&gt;And you know what, I was chosen as&lt;br /&gt;a reporter, my God, its so difficult. Ü&lt;br /&gt;&lt;br /&gt;But luckily, sir Balbuena let my group help me.&lt;br /&gt;And we have done it. But its hard, really hard.!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6438554609162275044?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6438554609162275044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6438554609162275044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6438554609162275044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6438554609162275044'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week-nov-3-7.html' title='Learnings of the Week!! (Nov 3-7)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-509795775210301483</id><published>2008-11-08T09:35:00.000-08:00</published><updated>2008-12-22T21:42:25.675-08:00</updated><title type='text'>November 3 - 7, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;3rd grading has started…&lt;br /&gt;&lt;br /&gt;We started the week with an assignment in programming about iterative statements.&lt;br /&gt;&lt;br /&gt;Each group was given different problems that must be reported by group also the next day.&lt;br /&gt;&lt;br /&gt;We we’re so nervous because we don’t know how to answer our problem. But thanks to our classmates, we solve our problem because of their help.&lt;br /&gt;&lt;br /&gt;Luckily, I’m not the one who was chosen to report our problem…yipeey!!&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;‘yan lang!!   (^_^)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-509795775210301483?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/509795775210301483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=509795775210301483' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/509795775210301483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/509795775210301483'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/november-3-7-2008.html' title='November 3 - 7, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3896413225659896138</id><published>2008-11-03T18:43:00.000-08:00</published><updated>2008-11-07T18:45:13.006-08:00</updated><title type='text'></title><content type='html'>Learnings of the Week (Oct 26-Nov.3)&lt;br /&gt;&lt;br /&gt;By:Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;..uhhmmmm..it's our sembreak and it's the end of our 2nd grading period.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3896413225659896138?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3896413225659896138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3896413225659896138' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3896413225659896138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3896413225659896138'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week-oct-26-nov.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-8656443630498501221</id><published>2008-10-31T22:43:00.000-07:00</published><updated>2008-11-06T22:55:02.209-08:00</updated><title type='text'>Learnings of the Week! (Sept. 29-Oct 31)</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;By: Steffany Queen P. Bigoy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Ccomp016%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Papyrus; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-alt:"Times New Roman"; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:0 0 0 0 0 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} pre 	{margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; 	font-size:10.0pt; 	font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1741907784; 	mso-list-template-ids:487765174;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Ccomp016%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Papyrus; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-alt:"Times New Roman"; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:auto; 	mso-font-signature:0 0 0 0 0 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} pre 	{margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; 	font-size:10.0pt; 	font-family:"Courier New"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1741907784; 	mso-list-template-ids:487765174;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 14pt; font-family: Papyrus; color: rgb(255, 255, 153); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;This week, we have performed a series of activities, I &lt;span style=""&gt; &lt;/span&gt;admit that I haven’t perfect the scores but still I learned a lot of lessons. It is so useful and very important to us for our future.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Below, you will see how the user values were read.&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Example:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll; color: rgb(204, 51, 204);"&gt;#include&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int main()&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int a, b, c;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("Enter the first value:");&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;scanf("%d", &amp;amp;a);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("Enter the second value:");&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;scanf("%d", &amp;amp;b);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;c = a + b;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("%d + %d = %d\n", a, b, c);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;return 0;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;Note that scanf uses the same sort of format string as printf (type man scanf for more info). Also note the &amp;amp; in front of a and b. This is the address operator in C: It returns the address of the variable (this will not make sense until we discuss pointers). You must use the &amp;amp; operator in scanf on any variable of type char, int, or float, as well as structure types (which we will get to shortly). If you leave out the &amp;amp; operator, you will get an error when you run the program. Try it so that you can see what that sort of run-time error looks like.&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Let's look at some variations to understand printf completely. Here is the simplest printf statement:&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("Hello");&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;This call to printf has a format string that tells printf to send the word "Hello" to standard out. Contrast it with this:&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("Hello\n");&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The difference between the two is that the second version sends the word "Hello" followed by a carriage return to standard out.&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The following line shows how to output the value of a variable using printf.&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("%d", b);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The %d is a placeholder that will be replaced by the value of the variable b when the printf statement is executed. Often, you will want to embed the value within some other words. One way to accomplish that is like this:&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("The temperature is ");&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("%d", b);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf(" degrees\n");&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;An easier way is to say this:&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("The temperature is %d degrees\n", b);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;You can also use multiple %d placeholders in one printf statement:&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("%d + %d = %d\n", a, b, c);&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;In the printf statement, it is extremely important that the number of operators in the format string corresponds exactly with the number and type of the variables following it. For example, if the format string contains three %d operators, then it must be followed by exactly three parameters and they must have the same types in the same order as those specified by the operators.&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;You can print all of the normal C types with printf by using different placeholders:&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int&lt;/span&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt; (integer values) uses %d&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;float&lt;/span&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt; (floating point values) uses %f&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;char&lt;/span&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt; (single character values) uses %c&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: justify;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;character strings&lt;/span&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;"&gt; (arrays of characters, discussed later) use %s&lt;/span&gt;&lt;/span&gt;&lt;span style="background: black none repeat scroll 0% 0%; font-size: 13pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 13pt; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 13pt; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 13pt; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-8656443630498501221?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/8656443630498501221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=8656443630498501221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8656443630498501221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/8656443630498501221'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-sept-29-oct-31.html' title='Learnings of the Week! (Sept. 29-Oct 31)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1287267689180961523</id><published>2008-10-31T20:33:00.000-07:00</published><updated>2008-12-22T21:34:00.763-08:00</updated><title type='text'>October 27 - 31, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;By: Cielito M. Cantero&lt;br /&gt;IV – Rizal&lt;br /&gt;&lt;br /&gt;seMbReak tYm!!!&lt;br /&gt;&lt;br /&gt;8s the eNd of the 2nd Grading period…yaHoo!! &lt;br /&gt;&lt;br /&gt;This week, I learned………nothing!!!..hehe,. rest time kasi na min ‘to..haha..&lt;br /&gt;&lt;br /&gt;That’s aLL..Thank u!!  (n_n)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1287267689180961523?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1287267689180961523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1287267689180961523' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1287267689180961523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1287267689180961523'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/october-27-31-2008.html' title='October 27 - 31, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-4279773773666612613</id><published>2008-10-31T10:52:00.000-07:00</published><updated>2008-11-01T22:56:34.730-07:00</updated><title type='text'>Learnings of the week (Lorebeth)</title><content type='html'>&lt;div style="text-align: center;"&gt;October 27-31&lt;br /&gt;by: Lorebeth Betinol&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;DRUM ROLL PLEASE...............................................................................................................................&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;I have Learned nothing because it is our semestral break, despite of having this break we are still busy with some projects.. That's all.. thank you.&lt;br /&gt;&lt;br /&gt;wHEW!! iT SEEMS LIKE THIS ONE IS  soooooooooooooooooooooooooooooooooo long..&lt;br /&gt;&lt;br /&gt;Bye...&lt;br /&gt;&lt;/div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-4279773773666612613?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/4279773773666612613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=4279773773666612613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4279773773666612613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4279773773666612613'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-lorebeth_31.html' title='Learnings of the week (Lorebeth)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-7985911665965284948</id><published>2008-10-25T20:30:00.000-07:00</published><updated>2008-11-01T22:29:49.796-07:00</updated><title type='text'>Learnings of the week (Lorebeth)(Ocober 20-24)</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;This Week we are going to have our periodical test for the second quarter, so.... no serious class really happened. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;Only the batch two had their activity about programming.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-7985911665965284948?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/7985911665965284948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=7985911665965284948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7985911665965284948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/7985911665965284948'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-lorebethocober-20-24.html' title='Learnings of the week (Lorebeth)(Ocober 20-24)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2646264047656282337</id><published>2008-10-25T18:40:00.000-07:00</published><updated>2008-11-07T18:46:24.918-08:00</updated><title type='text'></title><content type='html'>Learnings of the Week (Oct. 20-24)&lt;br /&gt;&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;Ahmmm..this week, we just had a review. No new lessons have discussed. The Batch 2 had just perform an activity in the Computer Laboratory. And on 24 we had our 2nd Periodical Exam in TLE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-2646264047656282337?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/2646264047656282337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=2646264047656282337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2646264047656282337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/2646264047656282337'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/11/learnings-of-week-oct.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3067958028291220348</id><published>2008-10-25T09:13:00.000-07:00</published><updated>2008-12-22T21:24:59.618-08:00</updated><title type='text'>October 20 - 24, 2008</title><content type='html'>LEARNINGS OF THE WEEK&lt;br /&gt;                              By: Cielito M. Cantero&lt;br /&gt;                                    IV – Rizal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Our Second Grading Examination was done this week last October 24 and the test was very hard for me specially the programming part. It takes a lot of time for me to answer it. &lt;br /&gt;&lt;br /&gt;The day before the examination, we had an activity about programming. And again and again…I wasn’t able to solve the problem properly but I was able to run it. &lt;br /&gt;&lt;br /&gt;We also had done the business planning this week. It really takes time and effort to make such project. And so teamwork and cooperation is a big help. Even though we had hard time to finish it, we still finished it and got high grades..hehe..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3067958028291220348?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3067958028291220348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3067958028291220348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3067958028291220348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3067958028291220348'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/october-20-24-2008.html' title='October 20 - 24, 2008'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3666502430744124766</id><published>2008-10-18T18:34:00.000-07:00</published><updated>2008-11-07T18:39:58.026-08:00</updated><title type='text'></title><content type='html'>Learnings of the Week(Oct.13-17)&lt;br /&gt;&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;This week, we learned alot about looping and branching. We used it in some of our activities but what do looping and branching really mean.&lt;br /&gt;&lt;br /&gt;For me, The for Statement&lt;br /&gt;&lt;br /&gt;This is the famous for loop structure that many of you have been using to write your own algorithms. The for loop is used when the number of loops is known (unlike the while loop, as we will see later). The syntax of the for loop is:&lt;br /&gt;&lt;br /&gt;for (initialization; conditional expression; stepping) &lt;br /&gt;{ &lt;br /&gt;  statement 1; &lt;br /&gt;  statement 2; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;As you can see, the initialization, the expression that controls the loop, and the stepping parts are all defined in the top of the statement and in one location. The parts are also separated by semicolons, and you begin the looped statements, or the statements that will be executed in the loop, using a block ( { } ). The first part of the for statement is the initialization part; use this part to initialize the variables that will be used in the algorithm of the for loop. Note that these variables are allocated on the stack, and this part will be executed only one time, because it doesn't make any sense to declare and initialize the same variable with the same value each time in the loop. &lt;br /&gt;&lt;br /&gt;The next part is the conditional expression, which determines whether the loop will be executed again or not. If the condition (something like i &lt; myArray.Length) evaluated to false, control passes to the first statement after the for statement block. If the condition evaluated to true, the body of the for block (the controlled statements) will be executed. &lt;br /&gt;&lt;br /&gt;The last part is the stepping part. Usually it will be a counter that will increment the variable that the conditional expression uses, because at some point we need the conditional expression to evaluate to false and terminate the execution of the for loop. Note that the stepping part executes after the controlled statements. That is, first the initialization part executes (one time only) and the variables allocate space on the stack; second, the conditional expression is evaluated, and if true, the controlled statements execute, followed by the stepping part execution, and again the conditional expression is evaluated and the process iterates.&lt;br /&gt;&lt;br /&gt;Note that any of the three parts that make the for statement can be empty; although it's not common, it can happen. Take a look:&lt;br /&gt;&lt;br /&gt;static void Main(string[] args) &lt;br /&gt;{ &lt;br /&gt;  int x = 10; &lt;br /&gt;  for(; x &lt; 100; x += 10) &lt;br /&gt;  { &lt;br /&gt;    Console.WriteLine(x); &lt;br /&gt;  } &lt;br /&gt;  Console.ReadLine(); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Compile the method into a class and run the application; you will get the following result:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As you can see, we omit the initialization part and we just put in the semicolon. Also note that the counter can increment or decrement, and it's up to you to define the algorithm.&lt;br /&gt;&lt;br /&gt;The for loop can be used to define very complex algorithms; this happens as a result of nesting the for loops. Let's take a very simple example which extends the above loop example. It will simply write the same numbers, but this time with a little difference.&lt;br /&gt;&lt;br /&gt;public class Loops &lt;br /&gt;{ &lt;br /&gt;  static void Main(string[] args) &lt;br /&gt;  { &lt;br /&gt;&lt;br /&gt;    for(int x = 10; x &lt; 100; x += 10) &lt;br /&gt;    { &lt;br /&gt;      Console.WriteLine(); &lt;br /&gt;      Console.WriteLine(x); &lt;br /&gt;      for(int y = x - 1, temp = x - 10; y &gt; temp; y--) &lt;br /&gt;      { &lt;br /&gt;        Console.Write("{0}, ", y); &lt;br /&gt;      } &lt;br /&gt;    } &lt;br /&gt;    Console.ReadLine(); &lt;br /&gt;  } &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Compile the class and run it, and you will get the following result:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have used a nest for loop to print all the numbers between two iterations from the outer for loop. The ability to use for loops actually makes great programmers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3666502430744124766?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3666502430744124766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3666502430744124766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3666502430744124766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3666502430744124766'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-weekoct.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6921686035756960511</id><published>2008-10-18T11:23:00.000-07:00</published><updated>2008-10-23T03:12:28.844-07:00</updated><title type='text'>LEARNINGS OF THE WEEK (Oct. 13 - Oct. 17)</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: red none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;LEARNINGS OF THE WEEK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: red none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;By: Cielito M. Cantero&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: red none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;IV – Rizal&lt;/span&gt;&lt;span style=";font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style=";font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;The branching and Looping!..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;h1 style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;Branching and Looping&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;  &lt;!-- dtl_id=9515 //--&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;In C, both &lt;b&gt;if&lt;/b&gt; statements and &lt;b&gt;while&lt;/b&gt; loops rely on the idea of &lt;b&gt;Boolean expressions&lt;/b&gt;. Here is a simple C program demonstrating an if statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;#include &lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;int main()&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;int b;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;printf("Enter a value:&lt;/span&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;scanf("%d", &amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;if (b &lt;&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;printf("The value is negative\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;return 0;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;This program accepts a number from the user. It then tests the number using an if statement to see if it is less than 0. If it is, the program prints a message. Otherwise, the program is silent. The &lt;b&gt;(b &lt;&gt; portion of the program is the &lt;a href="http://www.howstuffworks.com/boolean.htm"&gt;&lt;span style="color:yellow;"&gt;Boolean expression&lt;/span&gt;&lt;/a&gt;. C evaluates this expression to decide whether or not to print the message. If the Boolean expression evaluates to &lt;b&gt;True&lt;/b&gt;, then C executes the&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt; single line immediately following the if statement (or a block of lines within braces imme&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;diately following the if statement). If the Boolean expression is &lt;b&gt;False&lt;/b&gt;, then C skips the line or block of lines immediately following the if statement.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Xm9fbS84Adc/SQBLjQpK0qI/AAAAAAAAAHo/JmHfO8GNbOU/s1600-h/c1.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 180px; height: 320px;" src="http://2.bp.blogspot.com/_Xm9fbS84Adc/SQBLjQpK0qI/AAAAAAAAAHo/JmHfO8GNbOU/s320/c1.gif" alt="" id="BLOGGER_PHOTO_ID_5260287433903887010" border="0" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;b&gt;   &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;Here's slightly more comp&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;lex example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;#includ&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;e &lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;int main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;int b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("Enter a value:");&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;scanf("%d", &amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;if (b &lt;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("The value is negative\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;else if (b == 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("The value is zero\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("The value is positive\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;In this example, the &lt;b&gt;else if&lt;/b&gt; and &lt;b&gt;else&lt;/b&gt; sections evaluate&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt; for zero and positive values as well.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;Here is a more complicated Boolean expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;if ((x==y) &amp;amp;&amp;amp; (j&gt;k))&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;z=1;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;q=10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;This statement says, "If the value in variable x equals the value in variable y, and if the value in variable j is greater than the value in variable k, then set the variable z to 1, otherwise set the variable q to 10." You will use if statements like this throughout your C programs to make decisions. In general, most of the decisions you &lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;make will be simple ones like the first example; but on occasion, things get more complicated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;Notice that C uses &lt;b&gt;==&lt;/b&gt; to &lt;b&gt;test for equality&lt;/b&gt;, while it uses &lt;b&gt;=&lt;/b&gt; to &lt;b&gt;assign a value&lt;/b&gt; to a variable. The &lt;b&gt;&amp;amp;&amp;amp;&lt;/b&gt; in C represents a &lt;a href="http://www.howstuffworks.com/boolean1.htm"&gt;&lt;span style="color:yellow;"&gt;Boolean AND operation&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;Here are all of the Boolean operators in C:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;equality&lt;span style=""&gt;          &lt;/span&gt;==&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;less than&lt;span style=""&gt;         &lt;/span&gt;&lt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;Greater than&lt;span style=""&gt;      &lt;/span&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;&lt;=&lt;span style=""&gt;                &lt;/span&gt;&lt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;&gt;=&lt;span style=""&gt;                &lt;/span&gt;&gt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;inequality&lt;span style=""&gt;        &lt;/span&gt;!=&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;and&lt;span style=""&gt;               &lt;/span&gt;&amp;amp;&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;or&lt;span style=""&gt;                &lt;/span&gt;||&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;not&lt;span style=""&gt;               &lt;/span&gt;!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;You'll find that &lt;b&gt;while&lt;/b&gt; statements are just as easy to use as if statements. For example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;while (a &lt;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("%d\n", a);&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;a = a + 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;This causes the two lines within the braces to be executed repeatedly until &lt;b&gt;a&lt;/b&gt; is greater than or equal to &lt;b&gt;b&lt;/b&gt;. The while statement in general works like this:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://static.howstuffworks.com/gif/c-while.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 377px; height: 229px;" src="http://static.howstuffworks.com/gif/c-while.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/pre&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;C also provides a &lt;b&gt;do-while&lt;/b&gt; structure:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;do&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("%d\n", a);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;a = a + 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;while (a &lt;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;The &lt;b&gt;for loop&lt;/b&gt; in C is simply a shorthand way of expressing a while statement. For example, suppose you have the following code in C:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;x=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;while (x&lt;10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;blah blah blah&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;x++; /* x++ is the same as saying x=x+1 */&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;You can convert this into a for loop as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;for(x=1; x&lt;10;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;blah blah blah&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;Note that the while loop contains an initialization step (&lt;b&gt;x=1&lt;/b&gt;), a test step (&lt;b&gt;x&lt;10&lt;/b&gt;), and an increment step (&lt;b&gt;x++&lt;/b&gt;). The for loop lets you put all three parts onto one line, but you can put anything into those three parts. For example, suppose you have the following loop:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;a=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;b=6;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;while (a &lt;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;a++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;printf("%d\n",a);&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;You can place this into a for statement as well:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;for (a=1,b=6; a &lt;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;  &lt;/b&gt;&lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;b&gt;It is slightly confusing, but it is possible. The &lt;b&gt;comma operator&lt;/b&gt; lets you separate several different statements in the initialization and increment sections of the for loop (but not in the test section). Many C programmers like to pack a lot of information into a single line of C code; but a lot of people think it makes the code harder to understand, so they break it up.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;div align="center"&gt;&lt;b&gt;  &lt;/b&gt;&lt;table class="MsoNormalTable" style="background: lightyellow none repeat scroll 0% 50%; width: 300pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="1" cellpadding="0" cellspacing="0" width="400"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;color:yellow;"  &gt;= vs. == in Boolean   expressions&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;The &lt;b&gt;==&lt;/b&gt; sign is a   problem in C because every now and then you may forget and type just &lt;b&gt;=&lt;/b&gt;   in a Boolean expression. This is an easy mistake to make, but to the compiler   there is a very important difference. C will accept either &lt;b&gt;=&lt;/b&gt; and &lt;b&gt;==&lt;/b&gt;   in a Boolean expression -- the behavior of the program changes remarkably   between the two, however.&lt;/span&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;Boolean expressions evaluate to integers in C, and   integers can be used inside of Boolean expressions. The integer value 0 in C   is False, while any other integer value is True. The following is legal in C:&lt;/span&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;#include &lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;int main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;int a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;printf("Enter a number:");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;scanf("%d", &amp;amp;a);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;if (a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;printf("The value is True\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="text-align: center;"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;   &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;If &lt;b&gt;a&lt;/b&gt; is anything other than 0, the printf   statement gets executed.&lt;/span&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: purple none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Papyrus;font-size:130%;color:yellow;"   &gt;In C, a statement like &lt;b&gt;if (a=b)&lt;/b&gt; means,   "Assign &lt;b&gt;b&lt;/b&gt; to &lt;b&gt;a&lt;/b&gt;, and then test &lt;b&gt;a&lt;/b&gt; for its Boolean   value." So if &lt;b&gt;a&lt;/b&gt; becomes 0, the if statement is False; otherwise,   it is True. The value of &lt;b&gt;a&lt;/b&gt; changes in the process. This is not the   intended behavior if you meant to type &lt;b&gt;==&lt;/b&gt; (although this feature is   useful when used correctly), so be careful with your &lt;b&gt;=&lt;/b&gt; and &lt;b&gt;==&lt;/b&gt;   usage.&lt;/span&gt;&lt;span style=";font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;  &lt;/b&gt;&lt;/div&gt;&lt;b&gt;  &lt;/b&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style=";font-family:Papyrus;font-size:130%;color:yellow;"   &gt;&lt;o:p&gt;&lt;b&gt; &lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;b&gt;  &lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6921686035756960511?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6921686035756960511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6921686035756960511' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6921686035756960511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6921686035756960511'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-oct-13-oct-17.html' title='LEARNINGS OF THE WEEK (Oct. 13 - Oct. 17)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Xm9fbS84Adc/SQBLjQpK0qI/AAAAAAAAAHo/JmHfO8GNbOU/s72-c/c1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3680632838930942086</id><published>2008-10-17T02:43:00.000-07:00</published><updated>2008-10-17T02:57:40.417-07:00</updated><title type='text'>learnings of the week (lorebeth betinol)</title><content type='html'>This week I can say that we are so busy. We had our activity about computer programming and its all about Conditional statements, though I can say that its hard but I can say that I'm learning&lt;br /&gt;every sesssion and that's important.... I'm signing out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3680632838930942086?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3680632838930942086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3680632838930942086' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3680632838930942086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3680632838930942086'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-lorebeth-betinol.html' title='learnings of the week (lorebeth betinol)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-4920140231044145849</id><published>2008-10-10T22:10:00.000-07:00</published><updated>2008-10-23T02:46:45.436-07:00</updated><title type='text'>LEARNINGS OF THE WEEK (Oct. 6 - Oct. 10)</title><content type='html'>&lt;div style="text-align: center;"&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;LEARNINGS OF THE WEEK&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;By: Cielito M. Cantero&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;IV – Rizal&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;This week, we still have series of activities in programming using the turbo. We usually use scanf in programming. But now, let’s see how it works.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The &lt;b&gt;scanf function allows you to accept input from standard in&lt;/b&gt;, which for us is generally the keyboard. The scanf function can do a lot of different things, but it is generally unreliable unless used in the simplest ways. It is unreliable because it does not handle human errors very well. But for simple programs it is good enough and easy-to-use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The simplest application of &lt;b&gt;scanf&lt;/b&gt; looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre style="text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;scanf("%d", &amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The program will read in an integer value that the user enters on the keyboard (%d is for integers, as is printf, so b must be declared as an int) and place that value into b.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The scanf function uses the same placeholders as printf:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; uses &lt;b&gt;%d&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;float&lt;/span&gt;&lt;/b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; uses &lt;b&gt;%f&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;char&lt;/span&gt;&lt;/b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; uses &lt;b&gt;%c&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;character strings&lt;/span&gt;&lt;/b&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; (discussed later)      use &lt;b&gt;%s&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;You MUST put &lt;b&gt;&amp;amp;&lt;/b&gt; in front of the variable used in scanf. The reason why will become clear once you learn about &lt;b&gt;pointers&lt;/b&gt;. It is easy to forget the &amp;amp; sign, and when you forget it your program will almost always crash when you run it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;In general, it is best to use scanf as shown here -- to read a single value from the keyboard. Use multiple calls to scanf to read multiple values. In any real program, you will use the &lt;b&gt;gets&lt;/b&gt; or &lt;b&gt;fgets&lt;/b&gt; functions instead to read text a line at a time. Then you will "parse" the line to read its values. The reason that you do that is so you can detect errors in the input and handle them as you see fit.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The printf and scanf functions will take a bit of practice to be completely understood, but once mastered they are extremely useful.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div align="center"&gt;  &lt;table class="MsoNormalTable" style="background: rgb(238, 244, 246) none repeat scroll 0% 50%; width: 300pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="1" cellpadding="0" cellspacing="0" width="400"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Try This!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Modify this program so that it        accepts three values instead of two and adds all three together:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;#include &lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int a, b, c;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("Enter the first value:");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;scanf("%d", &amp;amp;a);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("Enter the second value:");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;scanf("%d", &amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;c = a + b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;printf("%d + %d = %d\n", a, b, c);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-left: 0.5in; text-align: center; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-family: Symbol; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;   &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Try deleting or adding random        characters or words in one of the previous programs and watch how the        compiler reacts to these errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;p style="margin-left: 0.5in; text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;For example, delete the b   variable in the first line of the above program and see what the compiler   does when you forget to declare a variable. Delete a semicolon and see what   happens. Leave out one of the braces. Remove one of the parentheses next to   the main function. Make each error by itself and then run the program through   the compiler to see what happens. By simulating errors like these, you can   learn about different compiler errors, and that will make your typos easier   to find when you make them for real.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; display: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div align="center"&gt;  &lt;table class="MsoNormalTable" style="background: rgb(238, 244, 246) none repeat scroll 0% 50%; width: 300pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="1" cellpadding="0" cellspacing="0" width="400"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;C Errors to Avoid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Using the wrong character case -        Case matters in C, so you cannot type &lt;b&gt;Printf&lt;/b&gt; or &lt;b&gt;PRINTF&lt;/b&gt;. It        must be &lt;b&gt;printf&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Forgetting to use the &lt;b&gt;&amp;amp;&lt;/b&gt;        in scanf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Too many or too few parameters        following the format statement in printf or scanf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia; text-align: center;"&gt;&lt;span style="background: lime none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Forgetting to declare a variable        name before using it&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-4920140231044145849?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/4920140231044145849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=4920140231044145849' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4920140231044145849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/4920140231044145849'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-oct-6-oct-10.html' title='LEARNINGS OF THE WEEK (Oct. 6 - Oct. 10)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-847511958198934145</id><published>2008-10-10T22:00:00.000-07:00</published><updated>2008-11-01T22:06:04.681-07:00</updated><title type='text'>Learnings of the week  (lorebeth)</title><content type='html'>&lt;span style="color: rgb(255, 255, 255); font-family: courier new;"&gt;The scanf function allows you to accept input from standard in, which for us is generally the keyboard. The scanf function can do a lot of different things, but it is generally unreliable unless used in the simplest ways. It is unreliable because it does not handle human errors very well. But for simple programs it is good enough and easy-to-use. The simplest application of scanf looks like this: scanf("%d", &amp;amp;b); The program will read in an integer value that the user enters on the keyboard (%d is for integers, as is printf, so b must be declared as an int) and place that value into b. The scanf function uses the same placeholders as printf: int uses %dfloat uses %fchar uses %ccharacter strings (discussed later) use %s You MUST put &amp;amp; in front of the variable used in scanf. The reason why will become clear once you learn about pointers. It is easy to forget the &amp;amp; sign, and when you forget it your program will almost always crash when you run it. In general, it is best to use scanf as shown here -- to read a single value from the keyboard. Use multiple calls to scanf to read multiple values. In any real program, you will use the gets or fgets functions instead to read text a line at a time. Then you will "parse" the line to read its values. The reason that you do that is so you can detect errors in the input and handle them as you see fit. &lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span style="color: rgb(255, 255, 255); font-family: courier new;"&gt;The printf and scanf functions will take a bit of practice to be completely understood, but once mastered they are extremely useful.         &lt;/span&gt;&lt;br /&gt;                           &lt;span style="color: rgb(255, 255, 255); font-family: courier new;"&gt;C Errors to Avoid Using the wrong character case - Case matters in C, so you cannot type Printf or PRINTF. It must be printf.Forgetting to use the &amp;amp; in scanfToo many or too few parameters following the format statement in printf or scanfForgetting to declare a variable name before using it&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-847511958198934145?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/847511958198934145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=847511958198934145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/847511958198934145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/847511958198934145'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-lorebeth.html' title='Learnings of the week  (lorebeth)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-166168879912129445</id><published>2008-10-07T18:32:00.000-07:00</published><updated>2008-11-07T18:33:56.551-08:00</updated><title type='text'></title><content type='html'>LEARNINGS OF THE WEEK (Oct.6-10)&lt;br /&gt;&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For this week, we have still encounter a lots of programming activities. But for the meantime, let's check it out what scanf really means.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The scanf function allows you to accept input from standard in, which for us is generally the keyboard. The scanf function can do a lot of different things, but it is generally unreliable unless used in the simplest ways. It is unreliable because it does not handle human errors very well. But for simple programs it is good enough and easy-to-use.&lt;br /&gt;&lt;br /&gt;The simplest application of scanf looks like this:&lt;br /&gt;&lt;br /&gt;scanf("%d", &amp;b);The program will read in an integer value that the user enters on the keyboard (%d is for integers, as is printf, so b must be declared as an int) and place that value into b.&lt;br /&gt;&lt;br /&gt;The scanf function uses the same placeholders as printf:&lt;br /&gt;&lt;br /&gt;int uses %d&lt;br /&gt;float uses %f&lt;br /&gt;char uses %c&lt;br /&gt;character strings (discussed later) use %s&lt;br /&gt;You MUST put &amp; in front of the variable used in scanf. The reason why will become clear once you learn about pointers. It is easy to forget the &amp; sign, and when you forget it your program will almost always crash when you run it.&lt;br /&gt;&lt;br /&gt;In general, it is best to use scanf as shown here -- to read a single value from the keyboard. Use multiple calls to scanf to read multiple values. In any real program, you will use the gets or fgets functions instead to read text a line at a time. Then you will "parse" the line to read its values. The reason that you do that is so you can detect errors in the input and handle them as you see fit.&lt;br /&gt;&lt;br /&gt;The printf and scanf functions will take a bit of practice to be completely understood, but once mastered they are extremely useful.&lt;br /&gt;&lt;br /&gt;Try This!&lt;br /&gt;&lt;br /&gt;Modify this program so that it accepts three values instead of two and adds all three together:&lt;br /&gt;&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;#include &lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt; &lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;int main()&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;{&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;int a, b, c;&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;printf("Enter the first value:");&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;scanf("%d", &amp;a);&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;printf("Enter the second value:");&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;scanf("%d", &amp;b);&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;c = a + b;&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;printf("%d + %d = %d\n", a, b, c);&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;return 0;&lt;!--[if !supportLists]--&gt;·                &lt;!--[endif]--&gt;}Try deleting or adding random characters or words in one of the previous programs and watch how the compiler reacts to these errors.&lt;br /&gt;For example, delete the b variable in the first line of the above program and see what the compiler does when you forget to declare a variable. Delete a semicolon and see what happens. Leave out one of the braces. Remove one of the parentheses next to the main function. Make each error by itself and then run the program through the compiler to see what happens. By simulating errors like these, you can learn about different compiler errors, and that will make your typos easier to find when you make them for real.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C Errors to Avoid&lt;br /&gt;&lt;br /&gt;Using the wrong character case - Case matters in C, so you cannot type Printf or PRINTF. It must be printf.&lt;br /&gt;Forgetting to use the &amp; in scanf&lt;br /&gt;Too many or too few parameters following the format statement in printf or scanf&lt;br /&gt;Forgetting to declare a variable name before using it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-166168879912129445?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/166168879912129445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=166168879912129445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/166168879912129445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/166168879912129445'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-oct.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1799870838486331473</id><published>2008-10-05T18:25:00.000-07:00</published><updated>2008-11-07T18:32:06.816-08:00</updated><title type='text'></title><content type='html'>LEARNINGS OF THE WEEK (Sept.29-Oct.3)&lt;br /&gt;&lt;br /&gt;By: Frea Diane T. Bautista&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This week, we always tackle about the different kinds of activities in programming we need to perform using the Turbo TC. All the activities given to us are challenging yet difficult to figure out. &lt;br /&gt;&lt;br /&gt;Check out below the example.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include  int main(){    int a, b, c;    printf("Enter the first value:");    scanf("%d", &amp;a);    printf("Enter the second value:");    scanf("%d", &amp;b);    c = a + b;    printf("%d + %d = %d\n", a, b, c);    return 0;}&lt;br /&gt;Note that scanf uses the same sort of format string as printf (type man scanf for more info). Also note the &amp; in front of a and b. This is the address operator in C: It returns the address of the variable (this will not make sense until we discuss pointers). You must use the &amp; operator in scanf on any variable of type char, int, or float, as well as structure types (which we will get to shortly). If you leave out the &amp; operator, you will get an error when you run the program. Try it so that you can see what that sort of run-time error looks like. &lt;br /&gt;&lt;br /&gt;Let's look at some variations to understand printf completely. Here is the simplest printf statement: &lt;br /&gt;&lt;br /&gt;    printf("Hello");This call to printf has a format string that tells printf to send the word "Hello" to standard out. Contrast it with this: &lt;br /&gt;&lt;br /&gt;    printf("Hello\n");The difference between the two is that the second version sends the word "Hello" followed by a carriage return to standard out. &lt;br /&gt;&lt;br /&gt;The following line shows how to output the value of a variable using printf. &lt;br /&gt;&lt;br /&gt;    printf("%d", b);The %d is a placeholder that will be replaced by the value of the variable b when the printf statement is executed. Often, you will want to embed the value within some other words. One way to accomplish that is like this: &lt;br /&gt;&lt;br /&gt;    printf("The temperature is ");    printf("%d", b);    printf(" degrees\n");An easier way is to say this: &lt;br /&gt;&lt;br /&gt;    printf("The temperature is %d degrees\n", b);You can also use multiple %d placeholders in one printf statement: &lt;br /&gt;&lt;br /&gt;    printf("%d + %d = %d\n", a, b, c);In the printf statement, it is extremely important that the number of operators in the format string corresponds exactly with the number and type of the variables following it. For example, if the format string contains three %d operators, then it must be followed by exactly three parameters and they must have the same types in the same order as those specified by the operators. &lt;br /&gt;&lt;br /&gt;You can print all of the normal C types with printf by using different placeholders: &lt;br /&gt;&lt;br /&gt;int (integer values) uses %d &lt;br /&gt;float (floating point values) uses %f &lt;br /&gt;char (single character values) uses %c &lt;br /&gt;character strings (arrays of characters, discussed later) use %s&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1799870838486331473?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1799870838486331473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1799870838486331473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1799870838486331473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1799870838486331473'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-sept.html' title=''/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-3318763256615395643</id><published>2008-10-05T09:25:00.000-07:00</published><updated>2008-10-23T02:38:11.087-07:00</updated><title type='text'>LEARNINGS OF THE WEEK (Sept. 29 - Oct. 3)</title><content type='html'>&lt;div style="text-align: center;"&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: aqua none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;LEARNINGS OF THE WEEK&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: aqua none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;By: Cielito M. Cantero&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: aqua none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;IV – Rizal&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;This week, we always have series of activities about programming. We have more complicated problems than the other we used to solve the other week. It’s hard for me to get perfect to the activities because different and harder problems were given and many kinds of solutions are presented. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Below, you will see how the user values were read.&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;#include &lt;stdio.h&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;int a, b, c;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("Enter the first value:");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;scanf("%d", &amp;amp;a);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("Enter the second value:");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;scanf("%d", &amp;amp;b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;c = a + b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("%d + %d = %d\n", a, b, c);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;return 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-size: 14pt; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Note that scanf uses the same sort of format string as printf (type &lt;span style=""&gt;man scanf&lt;/span&gt; for more info). Also note the &amp;amp; in front of a and b. This is the &lt;span style=""&gt;address operator&lt;/span&gt; in C: It returns the address of the variable (this will not make sense until we discuss pointers). You must use the &amp;amp; operator in scanf on any variable of type char, int, or float, as well as structure types (which we will get to shortly). If you leave out the &amp;amp; operator, you will get an error when you run the program. Try it so that you can see what that sort of run-time error looks like. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Let's look at some variations to understand printf completely. Here is the simplest printf statement: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("Hello");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;This call to printf has a format string that tells printf to send the word "Hello" to standard out. Contrast it with this: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("Hello\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The difference between the two is that the second version sends the word "Hello" followed by a carriage return to standard out. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The following line shows how to &lt;span style=""&gt;output the value of a variable using printf&lt;/span&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("%d", b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;The &lt;span style=""&gt;%d&lt;/span&gt; is a placeholder that will be replaced by the value of the variable &lt;span style=""&gt;b&lt;/span&gt; when the printf statement is executed. Often, you will want to embed the value within some other words. One way to accomplish that is like this: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;printf("The temperature is ");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("%d", b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf(" degrees\n");&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;An easier way is to say this: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("The temperature is %d degrees\n", b);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;You can also use multiple %d placeholders in one printf statement: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;    &lt;/span&gt;printf("%d + %d = %d\n", a, b, c);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;In the printf statement, it is extremely important that the number of &lt;span style=""&gt;operators&lt;/span&gt; in the format string corresponds exactly with the number and type of the variables following it. For example, if the format string contains three %d operators, then it must be followed by exactly three parameters and they must have the same types in the same order as those specified by the operators. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; color: fuchsia; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;You can &lt;span style=""&gt;print all of the normal C types with printf&lt;/span&gt; by using different placeholders: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="color: fuchsia;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;int&lt;/span&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; (integer      values) uses &lt;span style=""&gt;%d&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;float&lt;/span&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;      (floating point values) uses &lt;span style=""&gt;%f&lt;/span&gt;      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;char&lt;/span&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;      (single character values) uses &lt;span style=""&gt;%c&lt;/span&gt;      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="color: fuchsia;"&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;character      strings&lt;/span&gt;&lt;span style="background: yellow none repeat scroll 0% 50%; font-family: Papyrus; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; (arrays of characters, discussed later) use &lt;span style=""&gt;%s&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: Papyrus; color: fuchsia;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-3318763256615395643?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/3318763256615395643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=3318763256615395643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3318763256615395643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/3318763256615395643'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-sept-29-oct-3.html' title='LEARNINGS OF THE WEEK (Sept. 29 - Oct. 3)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-6931519010152991728</id><published>2008-10-04T09:07:00.000-07:00</published><updated>2008-11-01T22:13:03.882-07:00</updated><title type='text'>Learnings of the Week (lorebeh) </title><content type='html'>&lt;span style="color: rgb(255, 204, 204);"&gt;Well, actually we did not meet since the first day of the week because we are so busy having the Science And Math activities .&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span style="color: rgb(255, 204, 204);"&gt;Our adviser also asked us to update our DOST scholarship in USEP that is why he gave us two whole days for that.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-6931519010152991728?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/6931519010152991728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=6931519010152991728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6931519010152991728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/6931519010152991728'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/10/learnings-of-week-lorebeh.html' title='Learnings of the Week (lorebeh) &lt;Sept.29-Oct.3&gt;'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-1648259502611853378</id><published>2008-09-27T22:36:00.000-07:00</published><updated>2008-11-06T22:42:25.460-08:00</updated><title type='text'>Learnings of the Week! (Sept. 22-26)</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 102, 0);font-size:130%;" &gt;By: Steffany Queen P. Bigoy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;This week, we discussed about conditional statements used in programming. We applied them to some of our activities. I learned it a lot.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Below, are the lessons we've discussed this week.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="text-align: center;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: rgb(204, 51, 204);font-size:130%;" &gt;Conditional Statement&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="color: rgb(51, 0, 153);"&gt;Are statements that check an expression then may or may not execute a statement or group of statement depending on the result of the condition.&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="text-align: center;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(204, 51, 204);"&gt;Types of Conditional Statement &lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;The If Statement &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;The If-Else Statement &lt;/span&gt;&lt;o:p style="color: rgb(255, 204, 51);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;The Nested-If Statement &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;The If-Else-If Ladder &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;The Switch Statement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: rgb(255, 255, 102);"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;The Nested Switch Statement&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(102, 255, 255);"&gt;The If Statement &lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;The general form of the If statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(51, 51, 255);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;if ( expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(51, 51, 255);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;Expression is relational or Boolean expression that evaluates to a TRUE (1) or False (0) value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;Statement may either be a single C statement or a block of C statements. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;The general form of the If statement with block statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;if ( expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement_sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;&lt;span style=""&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="color: rgb(255, 255, 102);"&gt;In an if statement, if the expression evaluates to TRUE (1), the statement or the block of statements that forms the target of the if statement will be executed. Otherwise, the program will ignore the statement or the block of statements.&lt;/b&gt;&lt;span style="color: black;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(102, 255, 255);"&gt;The If-Else statement&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;The general form of the if-else statement is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;If (expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;statement_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;else &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;statement_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Where: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;If and else are reserved words&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Expression is relational or Boolean expression that evaluates to a TRUE (1) or False (0) value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Statement_1 and statement_2 may either be a single C statement or a block of c statements. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;The general form of the if-else statement with block of statement is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;If (expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;{&lt;span style=""&gt;           &lt;/span&gt;statement_sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;else &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;statement_sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;If an if-else statement, if the expression is TRUE (1), the statement or block of statement after the if statement will be executed; otherwise, the statement or block of statement in the else statement will be executed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: rgb(255, 255, 102);"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Note: Only the code associated with the if or the code that is associated with the else executes, never both.&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(102, 255, 255);"&gt;Nested-If statement &lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;One of the most confusing aspects of the if statement in any programming language is nested ifs. A nested if is an if statement that is the object of either an if or else. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;This is sometimes referred to as “an if within an if.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;The reason that nested ifs are so confusing is that it can be difficult to know what else associates with what if.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;Fortunately, C provides a very simple rule for resolving this type of situation. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;In C, the else is linked to the closest preceding if that does not already have an else statement associated with it. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;Consider the following situations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;Situations 1&lt;/u&gt;&lt;/b&gt;. The else at number 3 is paired with the if in number 2 since it is the nearest if statement with the else statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1. &lt;span style=""&gt;        &lt;/span&gt;if…..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;2. &lt;span style=""&gt;        &lt;/span&gt;if ……&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt;           &lt;/span&gt;…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;3. &lt;span style=""&gt;        &lt;/span&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Consider the following situations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;Situations 2. &lt;/u&gt;&lt;/b&gt;The else in number 5 is paired with the if in number 1. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1. &lt;span style=""&gt;        &lt;/span&gt;if ….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;2. &lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;3. &lt;span style=""&gt;                    &lt;/span&gt;if ….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;4. &lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;5. &lt;span style=""&gt;        &lt;/span&gt;else &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;Note that there is a pair of braces found in number 2 and number 4. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;The pair of braces defined the scope of the if statement in number 1 starting from the { in number 2 and ends with } in number 4. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;Therefore, the else statement in number 5 cannot paired with the if statement in number 3 because the else statement is outside the scope of the first if statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;This makes the if statement in number 1 the nearest if statement to the else statement in number 5.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(102, 255, 255);"&gt;The if-else-if Ladder&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;A common programming construct in C is the if-else- if ladder. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;The general form of the if-else-if ladder statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;if ( expression_1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;else if (expression_2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;else if (expression_3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_else;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;l&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Where: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;If and else are reserve words in C&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Expression_1, expression_2 up to expression_n in relational or boolean expression that evaluates to a TRUE (1) or False (0) value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Statement_1, statement_2 up to statement_else may either be a single C statement or a block of C statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;In an if-else-if ladder statement, the expression are evaluated from the top downward. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;As soon as a true condition is found, the statement associated with it is executed and the rest of the ladder will not be executed. If none of the condition is true, the final else is executed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;The final else acts as a defaults condition. If all other conditions are false, the last else statement is performed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;If the final else is not present, then no action takes place. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Note: The final else is optional, you may include this part if needed in the program or you may not include if not needed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(102, 255, 255);"&gt;The switch statement&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;The switch statement is a multiple-branch decision statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;The general form of the switch statement is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;switch (variable) &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;case constant1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;statement sequence_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;case constant2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;statement_sequence_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;default:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;statement_sequence_default;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;In a switch statement, a variable is successively tested against a list or integer or character constants. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;If a match is found, a statement or block of statement is executed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;The default part of the switch is executed if no matches are found. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;According to Herbert Schildt (1992), there are three important things to&lt;span style=""&gt;  &lt;/span&gt;know about switch statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1. The switch differs from if statements in such a way that switch can only test fro equality whereas if can evaluate a relational or logical expression. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;2. No two case constants in the same switch can have identical values. Of course, a switch statement enclosed by an outer switch may have case constant that are the same. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102);"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;3. If character constants are used in the switch, they are automatically converted to their integer values. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;Note: The break statement is used to terminate the statement associated with each case constant. It is a C keyword which means that at that point of execution, you should jump to the end of the switch statement by the symbol }. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: center;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: rgb(204, 51, 204);font-size:130%;" &gt;&lt;b&gt;The Nested Switch Statement &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: Wingdings; color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 0);"&gt;The general form of the nested switch statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;switch (variable)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;case constant:{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;switch (variable) &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;case constant1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement sequence_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;case constant2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement_sequence_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;case constant2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;default:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 204, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size: 100%; color: rgb(255, 204, 0);"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6328167788949649369-1648259502611853378?l=stefffrealorcie0809.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stefffrealorcie0809.blogspot.com/feeds/1648259502611853378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6328167788949649369&amp;postID=1648259502611853378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1648259502611853378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6328167788949649369/posts/default/1648259502611853378'/><link rel='alternate' type='text/html' href='http://stefffrealorcie0809.blogspot.com/2008/09/learnings-of-week-sept-22-26.html' title='Learnings of the Week! (Sept. 22-26)'/><author><name>cieffeatho</name><uri>http://www.blogger.com/profile/13177479514875779792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_Xm9fbS84Adc/SK-dnGZs2xI/AAAAAAAAAHI/1N26wCCyDh8/S220/computer.bmp'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6328167788949649369.post-2618206658726938460</id><published>2008-09-27T20:16:00.000-07:00</published><updated>2008-11-01T22:22:57.053-07:00</updated><title type='text'>Learnings of the week (lorebeth) (September 26)</title><content type='html'>&lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(51, 51, 51); font-family: lucida grande;"&gt;&lt;span style="font-size: 100%;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 204, 204); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;Types of Conditional Statement &lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(51, 51, 51); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;The If Statement &lt;/span&gt;&lt;o:p style="color: rgb(255, 204, 204);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;The If-Else Statement &lt;/span&gt;&lt;o:p style="color: rgb(255, 204, 204);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 153);"&gt;The Nested-If Statement &lt;/span&gt;&lt;o:p style="color: rgb(255, 204, 153);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 153);"&gt;The If-Else-If Ladder &lt;/span&gt;&lt;o:p style="color: rgb(255, 204, 153);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;The Switch Statement&lt;/span&gt;&lt;o:p style="color: rgb(255, 204, 204);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="color: rgb(255, 204, 204);"&gt;The Nested Switch Statement&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(255, 204, 153);"&gt;The If Statement &lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: black;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;The general form of the If statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;if ( expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 102, 102);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;•&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;Expression is relational or Boolean expression that evaluates to a TRUE (1) or False (0) value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;•&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;Statement may either be a single C statement or a block of C statements. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;•&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;The general form of the If statement with block statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;if ( expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement_sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;&lt;span style=""&gt;•&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="color: rgb(255, 255, 102);"&gt;In an if statement, if the expression evaluates to TRUE (1), the statement or the block of statements that forms the target of the if statement will be executed. Otherwise, the program will ignore the statement or the block of statements.&lt;/b&gt;&lt;span style="color: black;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(255, 204, 153);"&gt;The If-Else statement&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: black;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;The general form of the if-else statement is:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;If (expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;statement_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;else &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;statement_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;Where: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;If and else are reserved words&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Expression is relational or Boolean expression that evaluates to a TRUE (1) or False (0) value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Statement_1 and statement_2 may either be a single C statement or a block of c statements. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;The general form of the if-else statement with block of statement is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;If (expression)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;{&lt;span style=""&gt;           &lt;/span&gt;statement_sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;else &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;statement_sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;If an if-else statement, if the expression is TRUE (1), the statement or block of statement after the if statement will be executed; otherwise, the statement or block of statement in the else statement will be executed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;Note: Only the code associated with the if or the code that is associated with the else executes, never both.&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(255, 204, 153);"&gt;Nested-If statement &lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: black;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;One of the most confusing aspects of the if statement in any programming language is nested ifs. A nested if is an if statement that is the object of either an if or else. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;This is sometimes referred to as “an if within an if.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;The reason that nested ifs are so confusing is that it can be difficult to know what else associates with what if.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;Fortunately, C provides a very simple rule for resolving this type of situation. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;In C, the else is linked to the closest preceding if that does not already have an else statement associated with it. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;Consider the following situations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;Situations 1&lt;/u&gt;&lt;/b&gt;. The else at number 3 is paired with the if in number 2 since it is the nearest if statement with the else statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;1. &lt;span style=""&gt;        &lt;/span&gt;if…..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;2. &lt;span style=""&gt;        &lt;/span&gt;if ……&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt;           &lt;/span&gt;…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;3. &lt;span style=""&gt;        &lt;/span&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;Consider the following situations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;Situations 2. &lt;/u&gt;&lt;/b&gt;The else in number 5 is paired with the if in number 1. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;1. &lt;span style=""&gt;        &lt;/span&gt;if ….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;2. &lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;3. &lt;span style=""&gt;                    &lt;/span&gt;if ….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;4. &lt;span style=""&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;5. &lt;span style=""&gt;        &lt;/span&gt;else &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;Note that there is a pair of braces found in number 2 and number 4. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;The pair of braces defined the scope of the if statement in number 1 starting from the { in number 2 and ends with } in number 4. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;Therefore, the else statement in number 5 cannot paired with the if statement in number 3 because the else statement is outside the scope of the first if statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;This makes the if statement in number 1 the nearest if statement to the else statement in number 5.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(255, 204, 204);"&gt;The if-else-if Ladder&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 255, 102);"&gt;A common programming construct in C is the if-else- if ladder. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;The general form of the if-else-if ladder statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;if ( expression_1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;else if (expression_2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;else if (expression_3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement_else;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;l&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;Where: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;If and else are reserve words in C&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Expression_1, expression_2 up to expression_n in relational or boolean expression that evaluates to a TRUE (1) or False (0) value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;–&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;Statement_1, statement_2 up to statement_else may either be a single C statement or a block of C statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;In an if-else-if ladder statement, the expression are evaluated from the top downward. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;As soon as a true condition is found, the statement associated with it is executed and the rest of the ladder will not be executed. If none of the condition is true, the final else is executed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;The final else acts as a defaults condition. If all other conditions are false, the last else statement is performed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;/span&gt;If the final else is not present, then no action takes place. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;Note: The final else is optional, you may include this part if needed in the program or you may not include if not needed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b style="color: rgb(255, 204, 204);"&gt;The switch statement&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;The switch statement is a multiple-branch decision statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;T&lt;span style="color: rgb(204, 0, 0);"&gt;he general form of the switch statement is:&lt;/span&gt;&lt;o:p style="color: rgb(204, 0, 0);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;switch (variable) &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;case constant1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;statement sequence_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;case constant2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;statement_sequence_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;default:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;statement_sequence_default;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(204, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;In a switch statement, a variable is successively tested against a list or integer or character constants. &lt;/span&gt;&lt;o:p style="color: rgb(204, 0, 0);"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;If a match is found, a statement or block of statement is executed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;The default part of the switch is executed if no matches are found. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;According to Herbert Schildt (1992), there are three important things to&lt;span style=""&gt;  &lt;/span&gt;know about switch statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;1. The switch differs from if statements in such a way that switch can only test fro equality whereas if can evaluate a relational or logical expression. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;2. No two case constants in the same switch can have identical values. Of course, a switch statement enclosed by an outer switch may have case constant that are the same. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in; color: rgb(255, 255, 102); font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;3. If character constants are used in the switch, they are automatically converted to their integer values. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 102); font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;Note: The break statement is used to terminate the statement associated with each case constant. It is a C keyword which means that at that point of execution, you should jump to the end of the switch statement by the symbol }. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande;" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style="color: black;"&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;The Nested Switch Statement&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: lucida grande;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="color: black;"&gt;&lt;span style=""&gt;&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;The general form of the nested switch statement is: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;switch (variable)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;case constant:{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;switch (variable) &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;case constant1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement sequence_1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                &lt;/span&gt;case constant2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;statement_sequence_2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                                            &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                        &lt;/span&gt;case constant2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p style="font-family: lucida grande; color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 100%;"&gt;&lt;b&gt;&lt;span style=""&gt;                                    &lt;/span&gt;statement sequence;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&
