Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Magic_number.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// magic number program 1234 is a magic number, if wee add all the number//
//seperatly 1+2+3+4 =10 again adding the result 1+0= 1 if single digit //
//number is 1 then given number is magic number else not//
/** Magic number program 1234 is a magic number, if we add all the number
* seperatly 1+2+3+4 =10 again adding the result 1+0= 1 if single digit
* number is 1 then given number is magic number else not
*/

import java.io.;
import java.io.*;
class Magic_number
{
public static void main(String ar[])
public static void main(String ar[]) throws IOException
{

BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
Expand All @@ -25,8 +26,7 @@ public static void main(String ar[])
}
else
{
System.out.println("The entered number is NOT magic number");

System.out.println("The entered number is NOT magic number");
}
}
}
2 changes: 1 addition & 1 deletion Palindrome_or_not.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Palindrome_or_not {

public static void main(Sting args[])
public static void main(String args[])
{
Scanner x = new Scanner(System.in);

Expand Down