<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Source Codes | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/source-codes/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 27 Nov 2022 07:05:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C Program for Infix to Prefix Conversion</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-for-infix-to-prefix-conversion/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-for-infix-to-prefix-conversion/#comments</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 16:57:15 +0000</pubDate>
				<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[C Programs]]></category>
		<category><![CDATA[Infix to Prefix]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3321</guid>

					<description><![CDATA[<p>C Program for Infix to Prefix Conversion. Source: Dr. G T Raju, Professor &#038; Head, Dept. of CSE, RNSIT #define SIZE 50 /* Size of Stack */ #include #include char s[SIZE]; int top=-1; /* Global declarations */ push(char elem) { /* Function for PUSH operation */ s[++top]=elem; } char pop() { /* Function for POP</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-for-infix-to-prefix-conversion/">C Program for Infix to Prefix Conversion</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>C Program for Infix to Prefix Conversion.<br />
Source: Dr. G T Raju, Professor &#038; Head, Dept. of CSE, RNSIT</p>
<pre lang="C" line="1">
#define SIZE 50            /* Size of Stack */
#include<string.h>
#include <ctype.h>
char s[SIZE];
int top=-1;       /* Global declarations */

push(char elem)
{                       /* Function for PUSH operation */
    s[++top]=elem;
}

char pop()
{                      /* Function for POP operation */
    return(s[top--]);
}

int pr(char elem)
{                 /* Function for precedence */
    switch(elem)
    {
    case '#': return 0;
    case ')': return 1;
    case '+':
    case '-': return 2;
    case '*':
    case '/': return 3;
    }
}

main()
{                         /* Main Program */
    char infx[50],prfx[50],ch,elem;
    int i=0,k=0;
    printf("\n\nRead the Infix Expression ? ");
    scanf("%s",infx);
    push('#');
    strrev(infx);
    while( (ch=infx[i++]) != '\0')
    {
        if( ch == ')') push(ch);
        else
            if(isalnum(ch)) prfx[k++]=ch;
            else
                if( ch == '(')
                {
                    while( s[top] != ')')
                        prfx[k++]=pop();
                    elem=pop(); /* Remove ) */
                }
                else
                {       /* Operator */
                    while( pr(s[top]) >= pr(ch) )
                        prfx[k++]=pop();
                    push(ch);
                }
    }
    while( s[top] != '#')     /* Pop from stack till empty */
        prfx[k++]=pop();
    prfx[k]='\0';          /* Make prfx as valid string */
    strrev(prfx);
    strrev(infx);
    printf("\n\nGiven Infix Expn: %s  Prefix Expn: %s\n",infx,prfx);
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-for-infix-to-prefix-conversion/">C Program for Infix to Prefix Conversion</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-for-infix-to-prefix-conversion/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Verilog HDL Program for D Flip Flop</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-d-flip-flop/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-d-flip-flop/#comments</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 06:44:59 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[lab programs]]></category>
		<category><![CDATA[D Flip Flop]]></category>
		<category><![CDATA[Verilog programs]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3183</guid>

					<description><![CDATA[<p>A flip-flop or latch is a circuit that has two stable states and can be used to store state information. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops and</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-d-flip-flop/">Verilog HDL Program for D Flip Flop</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>A flip-flop or latch is a circuit that has two stable states and can be used to store state information. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops and latches are a fundamental building block of digital electronics systems used in computers, communications, and many other types of systems.</p>
<p>he D flip-flop captures the value of the D-input at a definite portion of the clock cycle (such as the rising edge of the clock). That captured value becomes the Q output. At other times, the output Q does not change. The D flip-flop can be viewed as a memory cell, a zero-order hold, or a delay line.</p>
<pre lang="VHDL" line="1">
module d(q,q1,d,c);
output q,q1;
 input d,c;
 reg q,q1;
	initial 
	   begin
		   q=1'b0; q1=1'b1;
	  end
	always @ (posedge c)
	   begin 
		 q=d;
		 q1= ~d;
	   end
endmodule
</pre>
<figure id="attachment_3184" aria-describedby="caption-attachment-3184" style="width: 564px" class="wp-caption aligncenter"><img decoding="async" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-D-Flip-Flop.jpg" alt="Simulated waveform for D Flip Flop" title="Simulated waveform for D Flip Flop" width="564" height="82" class="size-full wp-image-3184" /><figcaption id="caption-attachment-3184" class="wp-caption-text">Simulated waveform for D Flip Flop</figcaption></figure><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-d-flip-flop/">Verilog HDL Program for D Flip Flop</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-d-flip-flop/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>How to align or format codes in Visual Studio?</title>
		<link>https://studentprojects.in/software-tools/visual-studio/align-format-codes-visual-studio/</link>
					<comments>https://studentprojects.in/software-tools/visual-studio/align-format-codes-visual-studio/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 11 Aug 2011 08:14:15 +0000</pubDate>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[align codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1559</guid>

					<description><![CDATA[<p>This is very simple in Visual Studio. Follow the below steps. Select the code you want to re-format. Press Ctrl-K Press Ctrl-F The key combination Ctrl-K + Ctrl-F only works on selected text, so make sure you select the code you want to re-format before using it. You can easily reformat the entire code by</p>
<p>The post <a href="https://studentprojects.in/software-tools/visual-studio/align-format-codes-visual-studio/">How to align or format codes in Visual Studio?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>This is very simple in Visual Studio. Follow the below steps.</p>
<ol>
<li> Select the code you want to re-format.</li>
<li> Press Ctrl-K</li>
<li> Press Ctrl-F</li>
</ol>
<p>The key combination Ctrl-K + Ctrl-F only works on selected text, so make sure you select the code you want to re-format before using it. You can easily reformat the entire code by pressing Ctrl-A&nbsp; Ctrl-K&nbsp; Ctrl-F.</p><p>The post <a href="https://studentprojects.in/software-tools/visual-studio/align-format-codes-visual-studio/">How to align or format codes in Visual Studio?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-tools/visual-studio/align-format-codes-visual-studio/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to display triangle 1 24 369 481216</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-24-369-481216/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-24-369-481216/#comments</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:29:29 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lab programs]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1356</guid>

					<description><![CDATA[<p>/* Display Triangle as follow 1 2 4 3 6 9 4 8 12 16 ... N (indicates no. of Rows) */ class Output3{ public static void main(String args[]){ int n = Integer.parseInt(args[0]); for(int i=1;i</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-24-369-481216/">Java program to display triangle 1 24 369 481216</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
/* Display Triangle as follow<br />
   1<br />
   2 4<br />
   3 6 9<br />
   4 8 12 16 ... N (indicates no. of Rows) */<br />
class Output3{<br />
	public static void main(String args[]){<br />
		int n = Integer.parseInt(args[0]);<br />
		for(int i=1;i<=n;i++){
			for(int j=1;j<=i;j++){
				System.out.print((i*j)+" ");
			}
			System.out.print("\n");
		}
	}
}

</p><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-24-369-481216/">Java program to display triangle 1 24 369 481216</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-24-369-481216/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to display triangle 0 10 101 0101</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-0-10-101-0101/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-0-10-101-0101/#comments</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:28:49 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lab programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1354</guid>

					<description><![CDATA[<p>/* Display Triangle as follow 0 1 0 1 0 1 0 1 0 1 */ class Output2{ public static void main(String args[]){ for(int i=1;i</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-0-10-101-0101/">Java program to display triangle 0 10 101 0101</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
/* Display Triangle as follow
   0
   1 0
   1 0 1
   0 1 0 1 */
class Output2{
	public static void main(String args[]){
		for(int i=1;i<=4;i++){
			for(int j=1;j<=i;j++){
				System.out.print(((i+j)%2)+" ");
			}
			System.out.print("\n");
		}
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-0-10-101-0101/">Java program to display triangle 0 10 101 0101</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-0-10-101-0101/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to display triangle 1 23 456 78910</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-23-456-78910/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-23-456-78910/#comments</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:28:09 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lab programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1352</guid>

					<description><![CDATA[<p>/* Display Triangle as follow : BREAK DEMO. 1 2 3 4 5 6 7 8 9 10 ... N */ class Output1{ public static void main(String args[]){ int c=0; int n = Integer.parseInt(args[0]); loop1: for(int i=1;i</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-23-456-78910/">Java program to display triangle 1 23 456 78910</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
/* Display Triangle as follow : BREAK DEMO.
   1
   2 3
   4 5 6
   7 8 9 10 ... N */
class Output1{
	public static void main(String args[]){
		int c=0;
		int n = Integer.parseInt(args[0]);
loop1: for(int i=1;i<=n;i++){
loop2: for(int j=1;j<=i;j++){
	       if(c!=n){
		       c++;
		       System.out.print(c+" ");
	       }
	       else
		       break loop1;
       }
       System.out.print("\n");
       }
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-23-456-78910/">Java program to display triangle 1 23 456 78910</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-display-triangle-1-23-456-78910/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to find average of consecutive N Odd no. and Even no.</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-average-consecutive-odd/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-average-consecutive-odd/#respond</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:27:21 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lab programs]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1349</guid>

					<description><![CDATA[<p>class EvenOdd_Avg{ public static void main(String args[]){ int n = Integer.parseInt(args[0]); int cntEven=0,cntOdd=0,sumEven=0,sumOdd=0; while(n > 0){ if(n%2==0){ cntEven++; sumEven = sumEven + n; } else{ cntOdd++; sumOdd = sumOdd + n; } n--; } int evenAvg,oddAvg; evenAvg = sumEven/cntEven; oddAvg = sumOdd/cntOdd; System.out.println("Average of first N Even no is "+evenAvg); System.out.println("Average of first N Odd</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-average-consecutive-odd/">Java program to find average of consecutive N Odd no. and Even no.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
class EvenOdd_Avg{
	public static void main(String args[]){
		int n = Integer.parseInt(args[0]);
		int cntEven=0,cntOdd=0,sumEven=0,sumOdd=0;
		while(n > 0){
			if(n%2==0){
				cntEven++;
				sumEven = sumEven + n;
			}
			else{
				cntOdd++;
				sumOdd = sumOdd + n;
			}
			n--;
		}
		int evenAvg,oddAvg;
		evenAvg = sumEven/cntEven;
		oddAvg = sumOdd/cntOdd;
		System.out.println("Average of first N Even no is "+evenAvg);
		System.out.println("Average of first N Odd no is "+oddAvg);
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-average-consecutive-odd/">Java program to find average of consecutive N Odd no. and Even no.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-average-consecutive-odd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to generate Harmonic Series 1 + 1/2 + 1/3 + 1/4 + 1/5</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-generate-harmonic-series-1-12-13-14-15/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-generate-harmonic-series-1-12-13-14-15/#comments</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:26:35 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lab programs]]></category>
		<category><![CDATA[Harmonic Series]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1347</guid>

					<description><![CDATA[<p>/* Write a program to generate Harmonic Series. Example : Input - 5 Output - 1 + 1/2 + 1/3 + 1/4 + 1/5 = 2.28 (Approximately) */ class HarmonicSeries{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); double result = 0.0; while(num > 0){ result = result + (double) 1 / num; num--;</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-generate-harmonic-series-1-12-13-14-15/">Java program to generate Harmonic Series 1 + 1/2 + 1/3 + 1/4 + 1/5</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
/* Write a program to generate Harmonic Series.
   Example :
   Input - 5
   Output - 1 + 1/2 + 1/3 + 1/4 + 1/5 = 2.28 (Approximately) */
class HarmonicSeries{
	public static void main(String args[]){
		int num = Integer.parseInt(args[0]);
		double result = 0.0;
		while(num > 0){
			result = result + (double) 1 / num;
			num--;
		}
		System.out.println("Output of Harmonic Series is "+result);
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-generate-harmonic-series-1-12-13-14-15/">Java program to generate Harmonic Series 1 + 1/2 + 1/3 + 1/4 + 1/5</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-generate-harmonic-series-1-12-13-14-15/feed/</wfw:commentRss>
			<slash:comments>18</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to demonstrate switch case</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-demonstrate-switch-case/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-demonstrate-switch-case/#comments</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:25:41 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lab programs]]></category>
		<category><![CDATA[switch case]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1345</guid>

					<description><![CDATA[<p>/* switch case demo Example : Input - 124 Output - One Two Four */ class SwitchCaseDemo{ public static void main(String args[]){ try{ int num = Integer.parseInt(args[0]); int n = num; //used at last time check int reverse=0,remainder; while(num > 0){ remainder = num % 10; reverse = reverse * 10 + remainder; num =</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-demonstrate-switch-case/">Java program to demonstrate switch case</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
/* switch case demo
   Example :
   Input - 124
   Output - One Two Four */
class SwitchCaseDemo{
	public static void main(String args[]){
		try{
			int num = Integer.parseInt(args[0]);
			int n = num; //used at last time check
			int reverse=0,remainder;
			while(num > 0){
				remainder = num % 10;
				reverse = reverse * 10 + remainder;
				num = num / 10;
			}
			String result=""; //contains the actual output
			while(reverse > 0){
				remainder = reverse % 10;
				reverse = reverse / 10;
				switch(remainder){
					case 0 :
						result = result + "Zero ";
						break;
					case 1 :
						result = result + "One ";
						break;
					case 2 :
						result = result + "Two ";
						break;
					case 3 :
						result = result + "Three ";
						break;
					case 4 :
						result = result + "Four ";
						break;
					case 5 :
						result = result + "Five ";
						break;
					case 6 :
						result = result + "Six ";
						break;
					case 7 :
						result = result + "Seven ";
						break;
					case 8 :
						result = result + "Eight ";
						break;
					case 9 :
						result = result + "Nine ";
						break;
					default:
						result="";
				}
			}
			System.out.println(result);
		}catch(Exception e){
			System.out.println("Invalid Number Format");
		}
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-demonstrate-switch-case/">Java program to demonstrate switch case</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-demonstrate-switch-case/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to find whether no. is palindrome or not</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-palindrome/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-palindrome/#comments</comments>
		
		<dc:creator><![CDATA[surajk]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:24:43 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[palindrome]]></category>
		<category><![CDATA[lab programs]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1343</guid>

					<description><![CDATA[<p>/* Write a program to find whether no. is palindrome or not. Example : Input - 12521 is a palindrome no. Input - 12345 is not a palindrome no. */ class Palindrome{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int n = num; //used at last time check int reverse=0,remainder; while(num > 0){</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-palindrome/">Java program to find whether no. is palindrome or not</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="java" line="1">
/* Write a program to find whether no. is palindrome or not.
   Example :
   Input - 12521 is a palindrome no.
   Input - 12345 is not a palindrome no. */
class Palindrome{
	public static void main(String args[]){
		int num = Integer.parseInt(args[0]);
		int n = num; //used at last time check
		int reverse=0,remainder;
		while(num > 0){
			remainder = num % 10;
			reverse = reverse * 10 + remainder;
			num = num / 10;
		}
		if(reverse == n)
			System.out.println(n+" is a Palindrome Number");
		else
			System.out.println(n+" is not a Palindrome Number");
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-palindrome/">Java program to find whether no. is palindrome or not</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-find-palindrome/feed/</wfw:commentRss>
			<slash:comments>38</slash:comments>
		
		
			</item>
	</channel>
</rss>
