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

Java Loop Assignment: 5 Key Tasks

The document contains 5 questions about writing Java programs using loops. The questions cover calculating sums of natural numbers, printing multiplication tables, finding greatest common divisors, checking for palindromes in strings, and generating Fibonacci series terms.

Uploaded by

kixeped655
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 views3 pages

Java Loop Assignment: 5 Key Tasks

The document contains 5 questions about writing Java programs using loops. The questions cover calculating sums of natural numbers, printing multiplication tables, finding greatest common divisors, checking for palindromes in strings, and generating Fibonacci series terms.

Uploaded by

kixeped655
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/ 3

LOOPS

Assignment Questions
Assignment Questions
Q1. Write a Java program to calculate the sum of natural numbers up to a given positive integer 'n'.

Q2. Write a Java program to print a multiplication table for a given number 'n'.

Q3. Write a Java program to find the GCD (Greatest Common Divisor) of two numbers using a loop.

Q4. Write a Java program to check if a given string is a palindrome or not using a loop.

Q5. Write a Java program to generate and print the first 'n' terms of the Fibonacci series.

Java + DSA
THANK

YOU !

You might also like