<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by sheng89</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Wed, 11 Nov 2026 23:10:59 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>WTS FMFA 2014 Day 3 ticket</title>
            <link>http://forum.lowyat.net/topic/3160904</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt; - FMFA 2014 Day 3 Tickets&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt; - 2 x FMFA 2014 Day 3 tickets&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt; RM 250 each&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt; None&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt; C.O.D -&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location:&lt;/b&gt; Subang Area&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt; PM here&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt; - New&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt; - Extra</description>
            <author>sheng89</author>
            <category>Garage Sales Archive</category>
            <pubDate>Fri, 14 Mar 2014 12:31:00 +0800</pubDate>
        </item>
        <item>
            <title>Multiplication table using arrays and functions</title>
            <link>http://forum.lowyat.net/topic/552641</link>
            <description>Question = You are given a 6x6 double-subscripted array. Write a function to calculate and display a multiplication table from 1 to 5 (i.e., 5*5=25 is largest value in this table). Use only nested for loop in your function. Initialize the array's elements to 0 and display the array's values in tabular format. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void multiply( int i, int j); &lt;br /&gt;&lt;br /&gt;int main(void)&lt;br /&gt;{		&lt;br /&gt;		int a, i, j;&lt;br /&gt;		int answer;&lt;br /&gt;&lt;br /&gt;		 int array[ 6 ][6]=&lt;br /&gt;		{{ 0,0,0,0},&lt;br /&gt;		 {0,0,0,0},&lt;br /&gt;		 {0,0,0,0}};&lt;br /&gt;		 &lt;br /&gt;		 multiply( i, j);&lt;br /&gt;		 answer = a;&lt;br /&gt;		 &lt;br /&gt;		 for ( int i = 1; i &amp;lt;= 5; i++ )&lt;br /&gt;		 	for ( int j = 1; j &amp;lt;= 5; j++)&lt;br /&gt;			{&lt;br /&gt;				a = array[i][j];&lt;br /&gt;				printf(&amp;quot;          1 2 3 4 5&amp;quot;);&lt;br /&gt;				for ( i = 1; answer &amp;lt;= 25; i++)&lt;br /&gt;				{&lt;br /&gt;					printf(&amp;quot;%-5d&amp;quot;, array[i][j]);&lt;br /&gt;				}&lt;br /&gt;			}&lt;br /&gt;			&lt;br /&gt;				 return 0;&lt;br /&gt;		}&lt;br /&gt;		&lt;br /&gt;		void multiply( int i, int j )&lt;br /&gt;		{&lt;br /&gt;			int answer = 0;&lt;br /&gt;		&lt;br /&gt;			&lt;br /&gt;		for( int i = 1; i &amp;lt;= 5; i++)&lt;br /&gt;		{&lt;br /&gt;			for( int c = 1; c &amp;lt;= 5; c++)&lt;br /&gt;				{&lt;br /&gt;					answer = i * c;&lt;br /&gt;					&lt;br /&gt;				}&lt;br /&gt;				&lt;br /&gt;			}&lt;br /&gt;			return answer ;&lt;br /&gt;			}		 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Problem: Cant replace the values in the array with the answer from the multiply function. Coding to create multiplication table seems wrong too. Few syntax errors. No idea why =&amp;#39;( &lt;br /&gt;&lt;br /&gt;Any help would be greatly appreciated&amp;#33; Thank you.</description>
            <author>sheng89</author>
            <category>Codemasters</category>
            <pubDate>Mon, 12 Nov 2007 19:44:22 +0800</pubDate>
        </item>
        <item>
            <title>Dont understand the error msgs.</title>
            <link>http://forum.lowyat.net/topic/534668</link>
            <description>Question: Develop a game program which asks the user to guess a random number generated by the program. (The number must be between 1 - 1000). If the user guesses it right, ask him whether he would like to play again. If he gets it wrong, hint him by saying the number he guessed is either too high or too low and let him try again until he gets it right.&lt;br /&gt;&lt;br /&gt;Problem: I don&amp;#39;t really understand the some of the error msgs the compiler showed. Another thing is that i&amp;#39;m not too sure about my logic.&lt;br /&gt;&lt;br /&gt;Source Code:&lt;br /&gt;&lt;br /&gt;1		#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;2		#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;3		#include &amp;lt;time.h&amp;gt;&lt;br /&gt;4&lt;br /&gt;5	enum Status { PLAYAGAIN, TOOLOW, TOOHIGH }&lt;br /&gt;6	&lt;br /&gt;7	int randomnum(void);&lt;br /&gt;8	&lt;br /&gt;9	int main() &lt;br /&gt;10	{&lt;br /&gt;11	&lt;br /&gt;12		int guess;&lt;br /&gt;13		int answer;&lt;br /&gt;14		int chosen;&lt;br /&gt;15		&lt;br /&gt;16		enum Status gameStatus&lt;br /&gt;17		&lt;br /&gt;18		srand( time( NULL ) );&lt;br /&gt;19		&lt;br /&gt;20		chosen = randomnum();&lt;br /&gt;21		&lt;br /&gt;22		printf(&amp;quot;I have a number between 1 to 1000.&amp;#092;nCan you guess my number?&amp;#092;nPlease type your first guess:&amp;quot;);&lt;br /&gt;23		scanf(&amp;quot;%d&amp;quot;,&amp;amp;guess);&lt;br /&gt;24		&lt;br /&gt;25		if (guess == chosen) {&lt;br /&gt;26		&lt;br /&gt;27			gameStatus = PLAYAGAIN;&lt;br /&gt;28			&lt;br /&gt;29		printf(&amp;quot;Excellent&amp;#33; You guessed the number&amp;#33;&amp;#092;nWould you like to play again?(Enter 1 for Yes and 2 for No):&amp;quot;;&lt;br /&gt;30		scanf(&amp;quot;%d&amp;quot;,&amp;amp;answer);&lt;br /&gt;31			&lt;br /&gt;32		while ( answer == 1)&lt;br /&gt;33				{&lt;br /&gt;34				printf(&amp;quot;I have a number between 1 to 1000.&amp;#092;nCan you guess my number?&amp;#092;nPlease type your first guess:&amp;quot;);&lt;br /&gt;35				scanf(&amp;quot;%d&amp;quot;,&amp;amp;guess);&lt;br /&gt;36				else if { &lt;br /&gt;37							break;&lt;br /&gt;38				}&lt;br /&gt;39				}	&lt;br /&gt;40				break;	&lt;br /&gt;41		if ( guess &amp;lt; chosen )&lt;br /&gt;42			{	gameStatus = TOOLOW;&lt;br /&gt;43											&lt;br /&gt;44				&lt;br /&gt;45				if ( guess &amp;gt; chosen )&lt;br /&gt;46					{	gameStatus = TOOHIGH;&lt;br /&gt;47													}&lt;br /&gt;48													}			&lt;br /&gt;49			while ( gameStatus == TOOLOW ) &lt;br /&gt;50			{		&lt;br /&gt;51					printf(&amp;quot;Too Low, Try again&amp;#092;n&amp;quot;);&lt;br /&gt;52					printf(&amp;quot;Enter Next Guess:&amp;quot;);&lt;br /&gt;53					scanf(&amp;quot;%d&amp;quot;, &amp;amp;guess);&lt;br /&gt;54			}		&lt;br /&gt;55			&lt;br /&gt;56			while ( gameStatus == TOOHIGH )&lt;br /&gt;57			{&lt;br /&gt;58					printf(&amp;quot;Too high, Try again&amp;#092;n&amp;quot;);&lt;br /&gt;59					printf(&amp;quot;Enter Next Guess:&amp;quot;);&lt;br /&gt;60					scanf(&amp;quot;%d&amp;quot;,&amp;amp;guess);							&lt;br /&gt;61			return 0;&lt;br /&gt;62			}&lt;br /&gt;63			&lt;br /&gt;64			int randomnum(void)&lt;br /&gt;65			{&lt;br /&gt;66				int num;&lt;br /&gt;67				&lt;br /&gt;68				num = 1 + ( rand() % 1000 );&lt;br /&gt;69				chosen = num;&lt;br /&gt;70				&lt;br /&gt;71				return chosen;&lt;br /&gt;72				&lt;br /&gt;73			}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ERROR MSGS:&lt;br /&gt;Error E2176 Test 5.35 7: Too many types in declaration&lt;br /&gt;Error E2111 Test 5.35 7: Type &amp;#39;Status&amp;#39; may not be defined here&lt;br /&gt;Error E2141 Test 5.35 18: Declaration syntax error in function main()&lt;br /&gt;Error E2121 Test 5.35 29: Function call missing ) in function main()&lt;br /&gt;Error E2054 Test 5.35 36: Misplaced else in function main()&lt;br /&gt;Error E2376 Test 5.35 36: If statement missing ( in function main()&lt;br /&gt;Error E2030 Test 5.35 40: Misplaced break in function main()&lt;br /&gt;Error E2356 Test 5.35 65: Type mismatch in redeclaration of &amp;#39;randomnum()&amp;#39; in function main()&lt;br /&gt;Error E2344 Test 5.35 7: Earlier declaration of &amp;#39;randomnum()&amp;#39; in function main()&lt;br /&gt;Error E2141 Test 5.35 65: Declaration syntax error in function main()&lt;br /&gt;Error E2139 Test 5.35 73: Declaration missing ; in function main()&lt;br /&gt;Error E2134 Test 5.35 73: Compound statement missing } in function main()&lt;br /&gt;Error E2134 Test 5.35 73: Compound statement missing } in function main()&lt;br /&gt;&lt;br /&gt;Please point out my mistakes and if possible how to correct them.  Comments of any kind is welcomed. Thank you. &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>sheng89</author>
            <category>Codemasters</category>
            <pubDate>Wed, 10 Oct 2007 22:27:20 +0800</pubDate>
        </item>
        <item>
            <title>C language Help</title>
            <link>http://forum.lowyat.net/topic/525544</link>
            <description>Problem = A program that calculates and prints the average of several integers. Assume the last value read with scanf is the sentinel -1. &lt;br /&gt;A typical input sequence might be 10 8 11 7 9 -1.&lt;br /&gt;&lt;br /&gt;Source Code:&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;	int main(void)&lt;br /&gt;	{&lt;br /&gt;		int counter;&lt;br /&gt;		int number;&lt;br /&gt;		int average;&lt;br /&gt;		&lt;br /&gt;		counter = 0;&lt;br /&gt;		number = 0;&lt;br /&gt;		average = 0;&lt;br /&gt;		&lt;br /&gt;		do {&lt;br /&gt;			printf(&amp;quot;Enter integer (-1 to end) :&amp;quot;);&lt;br /&gt;			scanf(&amp;quot;%d&amp;quot;,&amp;amp;number);&lt;br /&gt;			average = (number + average) / counter;&lt;br /&gt;		} while ( ++counter &amp;gt;  -1);&lt;br /&gt;		&lt;br /&gt;		printf(&amp;quot;Average of the integers is %d.&amp;quot;, average);&lt;br /&gt;		&lt;br /&gt;	return 0;&lt;br /&gt;}			&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My problem is that after i run the program, a windows32 system error appears stating that this file has encountered a problem. Anyone has idea y is it doing this? Or is there any problem with my coding?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Problem: Use nested loop to produce following pattern:&lt;br /&gt;1&lt;br /&gt;1 2&lt;br /&gt;1 2 3 &lt;br /&gt;1 2 3 4&lt;br /&gt;&lt;br /&gt;Source Code: &lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;	int main(void)&lt;br /&gt;	{	&lt;br /&gt;		int counter;&lt;br /&gt;		int x;&lt;br /&gt;				&lt;br /&gt;			counter = 0;&lt;br /&gt;		&lt;br /&gt;			&lt;br /&gt;				for ( x = 0 ; x &amp;gt;= counter; counter++ ) {&lt;br /&gt;					while ( x &amp;gt; counter ) {&lt;br /&gt;							printf(&amp;quot;%d&amp;quot;,x);&lt;br /&gt;						}&lt;br /&gt;						}&lt;br /&gt;										&lt;br /&gt;		return 0;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My problem for this is that the program executes, but nothin comes out&amp;#33; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Problem: Use switch and break to compute weekly pay for each employee.&lt;br /&gt;&lt;br /&gt;Source Code:&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;	int main(void)&lt;br /&gt;	{&lt;br /&gt;			int paycode;&lt;br /&gt;			float salary;&lt;br /&gt;			int hworked;&lt;br /&gt;			float mpay = 500.00;&lt;br /&gt;			int pieces;&lt;br /&gt;			float wage;&lt;br /&gt;			float gross = 0.00;&lt;br /&gt;			&lt;br /&gt;			printf (&amp;quot;Enter Paycode (-1 to end):&amp;quot;);&lt;br /&gt;			scanf(&amp;quot;%d&amp;quot;, &amp;amp;paycode);&lt;br /&gt;			&lt;br /&gt;			while (paycode &amp;#33;= -1 ) {&lt;br /&gt;			&lt;br /&gt;				switch ( paycode ) {&lt;br /&gt;				&lt;br /&gt;					case &amp;#39;1&amp;#39;: &lt;br /&gt;					 	printf(&amp;quot;Manager Selected&amp;#092;n&amp;quot;);&lt;br /&gt;						printf(&amp;quot;Manager&amp;#39;s pay is %.2f.&amp;#092;n&amp;quot;, mpay);&lt;br /&gt;						break;   &lt;br /&gt;						&lt;br /&gt;					case &amp;#39;2&amp;#39;: &lt;br /&gt;						printf(&amp;quot;Hourly Worker Selected&amp;#092;n&amp;quot;);&lt;br /&gt;						printf(&amp;quot;Enter the Hourly Salary:&amp;quot;);&lt;br /&gt;						scanf(&amp;quot;%f&amp;quot;, &amp;amp;salary);&lt;br /&gt;						printf(&amp;quot;Enter the Total Hours Worked:&amp;quot;);&lt;br /&gt;						scanf(&amp;quot;%d&amp;quot;, &amp;amp;hworked);&lt;br /&gt;							if ( hworked &amp;gt; 40 ) {&lt;br /&gt;							 	printf(&amp;quot;Worker&amp;#39;s pay is %.2f&amp;#092;n&amp;#092;n&amp;quot;, salary * hworked * 1.5);&lt;br /&gt;								}	else {&lt;br /&gt;									printf(&amp;quot;Worker&amp;#39;s pay is %.2f&amp;#092;n&amp;#092;n&amp;quot;, salary * hworked);&lt;br /&gt;									}&lt;br /&gt;									break;   &lt;br /&gt;					&lt;br /&gt;								&lt;br /&gt;					case &amp;#39;3&amp;#39;:&lt;br /&gt;						printf(&amp;quot;Commission Worker Selected.&amp;#092;n&amp;quot;);&lt;br /&gt;						printf(&amp;quot;Enter gross weekly sales:&amp;quot;);&lt;br /&gt;						scanf(&amp;quot;%f&amp;quot;, gross);&lt;br /&gt;						printf(&amp;quot;Commission Worker&amp;#39;s pay is %.2f&amp;quot;, ( 0.057 * gross) + 250.00 );&lt;br /&gt;						break;&lt;br /&gt;						&lt;br /&gt;					case &amp;#39;4&amp;#39;:	&lt;br /&gt;						printf(&amp;quot;Piece Worker Selected.&amp;#092;n&amp;quot;);&lt;br /&gt;						printf(&amp;quot;Enter Number of Pieces:&amp;quot;);&lt;br /&gt;						scanf(&amp;quot;%d&amp;quot;, &amp;amp;pieces);&lt;br /&gt;						printf(&amp;quot;Enter Wage per Piece:&amp;quot;);&lt;br /&gt;						scanf(&amp;quot;%f&amp;quot;, &amp;amp;wage);&lt;br /&gt;						printf(&amp;quot;Piece Worker&amp;#39;s pay is %.2f.&amp;#092;n&amp;quot;, pieces * wage);&lt;br /&gt;						break; 				&lt;br /&gt;				}&lt;br /&gt;				}&lt;br /&gt;			return 0;&lt;br /&gt;			}&lt;br /&gt;&lt;br /&gt;Problem here is the same as the problem above. The problem executes but nothin comes out again&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please state the mistakes in my coding if they are any&amp;#33;&amp;#33;&amp;#33; Any advice would be greatly appreciated&amp;#33; Thank you&amp;#33;</description>
            <author>sheng89</author>
            <category>Codemasters</category>
            <pubDate>Mon, 24 Sep 2007 12:10:36 +0800</pubDate>
        </item>
        <item>
            <title>Formula cant seem to work</title>
            <link>http://forum.lowyat.net/topic/521375</link>
            <description>Problem = A program that determines the grosspay for employees. Company pays &amp;quot;straight time&amp;quot; for the first 40 hours and pays 1.5 for all hours worked in excess of the 40 hours. &lt;br /&gt;(Grosspay = Hours worked * Rate per hour, if excess of 40 hours, Gross pay = Hours worked * Rate per hour * 1.5)&lt;br /&gt;If an employee works exactly 55 hours, he receives a &amp;#036;100 bonus, but no longer receives the overtime pay, but if an employee works more than 75 hours, he receives a &amp;#036;1000 bonus in addition to the overtime pay)&lt;br /&gt;&lt;br /&gt;My problem is that i cant seem to get the formulas to work.&lt;br /&gt;My output always shows Gross pay = Hours worked * Hourly rate * 1.5 irregardless of the conditions i set. &lt;br /&gt;&lt;br /&gt;Source Code: &lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;	int main()&lt;br /&gt;	{&lt;br /&gt;		int hworked;&lt;br /&gt;		float hourlyrate;&lt;br /&gt;		int counter;&lt;br /&gt;		float grosspay;&lt;br /&gt;		&lt;br /&gt;		hworked = 0;&lt;br /&gt;		hourlyrate = 0;&lt;br /&gt;		counter = 0;&lt;br /&gt;		grosspay = 0;&lt;br /&gt;		&lt;br /&gt;		&lt;br /&gt;			printf(&amp;quot;Enter # of hours worked (-1 to end):&amp;quot;);&lt;br /&gt;			scanf(&amp;quot;%d&amp;quot;, &amp;amp;hworked);&lt;br /&gt;			&lt;br /&gt;				while ( hworked &amp;gt;= 0 )&lt;br /&gt;					{&lt;br /&gt;						counter = counter + 1;&lt;br /&gt;						printf(&amp;quot;Enter hourly rate of the worker (&amp;#036;00.00):&amp;quot;,hourlyrate);&lt;br /&gt;						scanf(&amp;quot;%f&amp;quot;,&amp;amp;hourlyrate);&lt;br /&gt;						&lt;br /&gt;							grosspay = hworked * hourlyrate;&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						&lt;br /&gt;						if (hworked &amp;gt;= 75 &amp;amp;&amp;amp; counter &amp;#33;= 0) &lt;br /&gt;						{&lt;br /&gt;							printf(&amp;quot;Salary is %.2f.&amp;#092;n&amp;#092;n&amp;quot;, grosspay * 1.5 + 1000);&lt;br /&gt;							}&lt;br /&gt;							else if (hworked == 55 &amp;amp;&amp;amp; counter &amp;#33;= 0){&lt;br /&gt;								&lt;br /&gt;									printf (&amp;quot;Salary is %.2f.&amp;#092;n&amp;#092;n&amp;quot;, grosspay + 100);&lt;br /&gt;							}&lt;br /&gt;							else if (hworked &amp;gt; 40 &amp;amp;&amp;amp; counter &amp;#33;= 0){&lt;br /&gt;								&lt;br /&gt;									printf (&amp;quot;Salary is %.2f.&amp;#092;n&amp;#092;n&amp;quot;, grosspay * 1.5);&lt;br /&gt;									}&lt;br /&gt;							else (hworked &amp;lt; 40 &amp;amp;&amp;amp; counter &amp;#33;= 0){&lt;br /&gt;								&lt;br /&gt;									printf (&amp;quot;Salary is %.2f.&amp;#092;n&amp;#092;n&amp;quot;, grosspay);&lt;br /&gt;									}&lt;br /&gt;									&lt;br /&gt;					printf(&amp;quot;Enter # of hours worked (-1 to end):&amp;quot;);&lt;br /&gt;					scanf(&amp;quot;%d&amp;quot;, &amp;amp;hworked); 	&lt;br /&gt;					}	&lt;br /&gt;				return 0;	&lt;br /&gt;			}		&lt;br /&gt;								 &lt;br /&gt;&lt;br /&gt;Please help point out my mistakes. Thank you.</description>
            <author>sheng89</author>
            <category>Codemasters</category>
            <pubDate>Sun, 16 Sep 2007 15:18:16 +0800</pubDate>
        </item>
        <item>
            <title>Need help with assignment</title>
            <link>http://forum.lowyat.net/topic/517642</link>
            <description>Problem = Compare the 3 integers and print the largest and the smallest of these numbers.&lt;br /&gt;&lt;br /&gt;My source code :&lt;br /&gt;&lt;br /&gt;            #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;               int main() {&lt;br /&gt;				                     int number1, number2, number3;&lt;br /&gt;				                     int smallest, largest;&lt;br /&gt;				&lt;br /&gt;				                     printf(&amp;quot;Input three different integers:&amp;quot;);&lt;br /&gt;				                     scanf (&amp;quot;%d%d%d&amp;quot;,&amp;amp;number1, &amp;amp;number2, &amp;amp;number3);&lt;br /&gt;				&lt;br /&gt;			&lt;br /&gt;		                                    largest = number1;					&lt;br /&gt;					               if(number1 &amp;lt; number2){&lt;br /&gt;						             printf (&amp;quot;Largest is %d&amp;#092;n&amp;quot;, largest);&lt;br /&gt;						       }&lt;br /&gt;				                       if(number2 &amp;lt; number3){&lt;br /&gt;				                              printf(&amp;quot;Largest is %d&amp;#092;n&amp;quot;, largest);&lt;br /&gt;				                       } &lt;br /&gt;						     smallest = number1;&lt;br /&gt;				&lt;br /&gt;				                       if (number1 &amp;gt; number2) {&lt;br /&gt;				 	                         printf (&amp;quot;Smallest is %d&amp;#092;n&amp;quot;,number2);&lt;br /&gt;					                 }&lt;br /&gt;			&lt;br /&gt;				                        if (number2 &amp;gt; number3) {&lt;br /&gt;					                  printf (&amp;quot;Smallest is %d&amp;#092;n&amp;quot;, number3);&lt;br /&gt;					                   }&lt;br /&gt;	return 0;&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried 2 ways of comparing the 3 integers but to no avail. The output of the largest will be whatever integer that is placed in number1 and vice versa for the smallest. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My 2nd problem is to write a program that inputs five-digit number, separates the number into its individual digit and print the digits separately from one another by three spaces each. For example if i put in 12345 the output is suppose to show 1   2   3   4   5. I have no idea where to start. The only thing i do know is that i have to use the integer division and modulus operator.&lt;br /&gt;&lt;br /&gt;Any form of help would sincerely be welcomed. Thank you.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>sheng89</author>
            <category>Codemasters</category>
            <pubDate>Sun, 09 Sep 2007 13:34:02 +0800</pubDate>
        </item>
    </channel>
</rss>
