0% found this document useful (0 votes)
8 views2 pages

Logical

The document outlines a series of programming tasks that involve basic logical operations and number manipulations. Tasks include displaying numbers in descending order, replacing vowels in strings, checking for palindromes, generating multiplication tables, and calculating factorials. Additional tasks involve identifying prime numbers, Armstrong numbers, Fibonacci series, and automorphic numbers, among others.

Uploaded by

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

Logical

The document outlines a series of programming tasks that involve basic logical operations and number manipulations. Tasks include displaying numbers in descending order, replacing vowels in strings, checking for palindromes, generating multiplication tables, and calculating factorials. Additional tasks involve identifying prime numbers, Armstrong numbers, Fibonacci series, and automorphic numbers, among others.

Uploaded by

selene6141744
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

LOGICAL PROGRAMS

1.Write a method that uses a for loop to display numbers in descending order

in the step of 5 starting from 100

2.Write a program that would replace every vowel in the String with X.

3.Write a program that checks if a NUMBER is a Palindrome.

4.Write a program that prompts the user to input a positive integer.

It should then print the multiplication table of that number.

5.Write a method that checks if a number is a Prime number

6.Write a method that accepts two numbers and returns the average of Two

8.Write a program to calculate the sum of first 10 natural number.

9.Write a program to find the factorial value of any number entered through the keyboard.

10.Write a program to FIND out a number is Armstrong number

11.Write a program to print Fibonacci series of n terms where n is input by user :

0 1 1 2 3 5 8 13 24 .....

12.Write a program to print even numbers from to 100.

13.write a program to find leap year

14.Write a program to find peterson number in java

eg:145->1!+4!+5!=145

15.ATM program

16.swap two numbers with temperory and without temperory variable

17.largest of three numbers

18.Automorphic Number Program in Java

76^2=5776 which also ends with 76

You might also like