0% found this document useful (0 votes)
3 views6 pages

Java Programs with Outputs for Class 10

The project titled 'Java Programs with Output' by Yash Singh for Class 10 A includes various Java programs demonstrating concepts like Armstrong numbers, factorials, and Fibonacci series. It acknowledges the guidance of teacher Sir Naman Goyal and expresses gratitude to family and friends for their support. The project concludes with reflections on the practical knowledge and skills gained in Java programming.

Uploaded by

yash singh
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)
3 views6 pages

Java Programs with Outputs for Class 10

The project titled 'Java Programs with Output' by Yash Singh for Class 10 A includes various Java programs demonstrating concepts like Armstrong numbers, factorials, and Fibonacci series. It acknowledges the guidance of teacher Sir Naman Goyal and expresses gratitude to family and friends for their support. The project concludes with reflections on the practical knowledge and skills gained in Java programming.

Uploaded by

yash singh
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

PROJECT FILE

Computer Applications

Submitted By:

Yash Singh
Class 10 A, Roll No. 32
ICSE Board
Year: 2025-2026
CERTIFICATE
This is to certify that the project entitled “Java Programs with Output” submitted by Yash
Singh of Class 10 A, Roll No. 32, for the subject Computer Applications during the academic
year 2025-2026 has been completed under my guidance.

This project is original and has not been submitted elsewhere.

Signature of Teacher: __________________

Name: Sir Naman Goyal


ACKNOWLEDGEMENT
I would like to express my heartfelt gratitude to my Computer Applications teacher, Sir
Naman Goyal, for his valuable guidance and encouragement throughout the completion of
this project. I am also thankful to my parents and friends for their support and motivation.

Lastly, I thank the Almighty for giving me the strength and ability to complete this work
successfully.
INDEX
1. Armstrong Number

2. Factorial of a Number

3. Fibonacci Series

4. Prime Number Check

5. Palindrome Number

6. Sum of Digits

7. Reverse of a Number

8. Largest of Three Numbers

9. Multiplication Table

10. Simple Interest

11. Even or Odd

12. GCD of Two Numbers

13. LCM of Two Numbers

14. Sorting of Array

15. Sum of Array Elements

16. Average of Numbers

17. Pattern Printing

18. Leap Year Check

19. Perfect Number Check

20. Prime Numbers in Range


Armstrong Number
Question: Write a program in Java to check whether a number is an Armstrong number or
not.

Program Code:

import [Link].*;
class Armstrong {
public static void main(String args[]) {
Scanner sc = new Scanner([Link]);
int n, a, n1, sum = 0;
[Link]("Enter a number:");
n = [Link]();
n1 = n;
while(n > 0) {
a = n % 10;
sum = sum + (a*a*a);
n = n / 10;
}
if(sum == n1)
[Link]("It is an Armstrong number");
else
[Link]("Not an Armstrong number");
}
}

Output:
Enter a number: 153
It is an Armstrong number
CONCLUSION
Through this project, I have gained practical knowledge of Java programming concepts such
as loops, conditionals, arrays, and user input. By writing and executing programs, I have
developed logical thinking and problem-solving skills that will help me in future studies.

You might also like