0% found this document useful (0 votes)
13 views

Assignment

The document outlines a programming assignment consisting of nine tasks. These tasks include printing even and odd numbers, calculating sums, generating multiplication tables, finding factorials, reversing numbers, producing Fibonacci series, calculating powers, and counting digits in integers. Each task requires writing a specific program to achieve the desired output.

Uploaded by

adeel4704452
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Assignment

The document outlines a programming assignment consisting of nine tasks. These tasks include printing even and odd numbers, calculating sums, generating multiplication tables, finding factorials, reversing numbers, producing Fibonacci series, calculating powers, and counting digits in integers. Each task requires writing a specific program to achieve the desired output.

Uploaded by

adeel4704452
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Assignment – 01

Q1. Print Even Numbers: Write a program to print all even numbers between 1
and 100 ?
Q2. Print Odd Numbers: Write a program to print all odd numbers between 1
and 100.
Q3. Sum of First N Natural Numbers: Write a program to calculate the sum of the
first N natural numbers.
Q4. Print Multiplication Table: Write a program to print the multiplication table
of a given number.
Q5. Factorial of a Number: Write a program to calculate the factorial of a
number entered by the user.
Q6. Reverse a Number: Write a program to reverse a given number using a for
loop.
Q7. Fibonacci Series: Write a program to print the first N terms of the Fibonacci
series.
Q8. Find Power of a Number: Write a program to calculate x^y (x raised to the
power y) using a for loop.
Q9. Count Digits in a Number: Write a program to count the number of digits in
a given integer.

You might also like