<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.mkbhandari.com/mkwiki/index.php?action=history&amp;feed=atom&amp;title=Java_Programs_Bank</id>
	<title>Java Programs Bank - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.mkbhandari.com/mkwiki/index.php?action=history&amp;feed=atom&amp;title=Java_Programs_Bank"/>
	<link rel="alternate" type="text/html" href="http://www.mkbhandari.com/mkwiki/index.php?title=Java_Programs_Bank&amp;action=history"/>
	<updated>2026-07-24T01:48:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>http://www.mkbhandari.com/mkwiki/index.php?title=Java_Programs_Bank&amp;diff=1015&amp;oldid=prev</id>
		<title>Mkwiki: /* 1. Basics */</title>
		<link rel="alternate" type="text/html" href="http://www.mkbhandari.com/mkwiki/index.php?title=Java_Programs_Bank&amp;diff=1015&amp;oldid=prev"/>
		<updated>2021-01-10T20:05:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;1. Basics&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:05, 10 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program to find sum of all digits. [ Sample input 23617, output 2+3+6+1+7=19.]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program to find sum of all digits. [ Sample input 23617, output 2+3+6+1+7=19.]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program, which will find sum of product to consecutive digits. [ Sample input is 23145 the output is 2x3 + 3x1 + 1x4 + 4x5 = 33. ]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program, which will find sum of product to consecutive digits. [ Sample input is 23145 the output is 2x3 + 3x1 + 1x4 + 4x5 = 33. ]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program, which reads two number (assume that both have same number of digits). The program outputs the sum of product of corresponding digits. [ Sample Input 327 and 539, output 3x5+2x3+7x9=84. ]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program, which reads two number (assume that both have same number of digits). The program outputs the sum of product of corresponding digits. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;[ Sample Input 327 and 539, output 3x5+2x3+7x9=84. ]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program to print positional values of digits. [ Sample Input 21463, output 3, 60, 400, 1000 and 20000. ]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program to print positional values of digits. [ Sample Input 21463, output 3, 60, 400, 1000 and 20000. ]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program to find sum of even digits. [ Sample input 23617, output 2+6=8. ]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Write program to find sum of even digits. [ Sample input 23617, output 2+6=8. ]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key i6340381_mw1-mw_:diff::1.12:old-1014:rev-1015 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mkwiki</name></author>
		
	</entry>
	<entry>
		<id>http://www.mkbhandari.com/mkwiki/index.php?title=Java_Programs_Bank&amp;diff=1014&amp;oldid=prev</id>
		<title>Mkwiki: Created page with &quot;== 1. Basics == # Write program to print the k th digit from last. [ Sample input 23617 and k=4 output 3. ] # Write a program to print first digit. [ Sample input 23516, outpu...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.mkbhandari.com/mkwiki/index.php?title=Java_Programs_Bank&amp;diff=1014&amp;oldid=prev"/>
		<updated>2021-01-10T20:04:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== 1. Basics == # Write program to print the k th digit from last. [ Sample input 23617 and k=4 output 3. ] # Write a program to print first digit. [ Sample input 23516, outpu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 1. Basics ==&lt;br /&gt;
# Write program to print the k th digit from last. [ Sample input 23617 and k=4 output 3. ]&lt;br /&gt;
# Write a program to print first digit. [ Sample input 23516, output 2. ]&lt;br /&gt;
# Write program to print the second digit. [ Sample input 23516, output is 3. ]&lt;br /&gt;
# Write program to find sum of all digits. [ Sample input 23617, output 2+3+6+1+7=19.]&lt;br /&gt;
# Write program, which will find sum of product to consecutive digits. [ Sample input is 23145 the output is 2x3 + 3x1 + 1x4 + 4x5 = 33. ]&lt;br /&gt;
# Write program, which reads two number (assume that both have same number of digits). The program outputs the sum of product of corresponding digits. [ Sample Input 327 and 539, output 3x5+2x3+7x9=84. ]&lt;br /&gt;
# Write program to print positional values of digits. [ Sample Input 21463, output 3, 60, 400, 1000 and 20000. ]&lt;br /&gt;
# Write program to find sum of even digits. [ Sample input 23617, output 2+6=8. ]&lt;br /&gt;
# Write program to find number of digits. [ Sample input 423 output 3, Input 21151 output 5. ]&lt;br /&gt;
# Write program to find number of even digits. [ Sample input 423 outpu 2, input 21151 output 1. ]&lt;br /&gt;
# Write program to print the last even digit. [ Sample input 23613, output 6. ] [Hint:while (x%2 ≠ 0) x=x/10]&lt;br /&gt;
# Program to print the digit immediately before the last even digit. [ Sample input 23613, output 3. ]&lt;br /&gt;
# Write program to print the digit immediately after the last even digit.[ Sample input 23613, output 1. ]&lt;br /&gt;
# Write program to print the last digit, which is multiple of 3. [ Smaple input 23617, output 6. ]&lt;br /&gt;
# Write program to print the second last even digit. [Sample input 23863, output 8. ]&lt;br /&gt;
# Write program, which finds the sum of numbers formed by consecutive digits. [Sample input 2415 output 24+41+15=80. ]&lt;br /&gt;
# Find sum of numbers formed by exchanging consecutive digits. [ Sample input 2415, output 42+14+51=107.]&lt;/div&gt;</summary>
		<author><name>Mkwiki</name></author>
		
	</entry>
</feed>