Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Assignment no.

2
For Loops
Submission Date: 11 June 2020

1. Write a code that prints following series


1 -4 7 -10 ……. -40

2. Write a program that displays the prime and composite odd numbers between
11 to 25.
3. Write a program that takes n numbers as input. It displays total positive and
negative numbers.
4. Write a code that prints following series
1 3 9 27 ……. 200
5. Write a program that determines the factors of the number using for loop.

You might also like