0% found this document useful (0 votes)
5 views4 pages

STRUCTURED Java Questions All Days

The document outlines Java programming solutions for various problems over two days. It includes programs to check for palindromes, prime numbers, perfect numbers, and to determine even/odd and positive/negative status, among others. Each program is accompanied by source code and expected output, though specific code and output details are not provided in the text.

Uploaded by

rrrsahu2005
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

STRUCTURED Java Questions All Days

The document outlines Java programming solutions for various problems over two days. It includes programs to check for palindromes, prime numbers, perfect numbers, and to determine even/odd and positive/negative status, among others. Each program is accompanied by source code and expected output, though specific code and output details are not provided in the text.

Uploaded by

rrrsahu2005
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java Programming Solutions

Week-1 (Day-1)
1. Program to Check Whether a Given Number is a Palindrome

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

2. Program to Find Palindrome Numbers in a Given Range

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

3. Program to Check Whether a Number is Prime or Not

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

4. Program to Find Prime Numbers in a Given Range

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file


5. Program to Reverse the Digits of a Given Number

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file


Week-1 (Day-2)
1. Program to Check Whether a Given Number is a Perfect Number

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

2. Program to Check Whether a Number is Even or Odd

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

3. Program to Check Whether a Number is Positive or Negative

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

4. Program to Find Sum of First N Natural Numbers

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file


5. Program to Find Sum of a Geometric Progression

Source Code (Java):

// Java code as per uploaded file

Output:

// Output as per uploaded file

You might also like