Friday, 26 September 2025

Assignment 1

 All the students are here by informed to join to this google class room click   

All the students are here by informed to write the Assignment 1 in assignment book and submit it on or before 06/10/2025 before 5PM. 

Assignment 1

Write the algorithm for the following:

1.  Read 'n' numbers from user and find the biggest number.

2. Read 'n' numbers from user and find sum and average of n numbers.

3.  Read 'n' numbers from user and find the number of even and odd numbers.

4.  Read 'n' numbers from user and find the average of even and odd numbers.

5.  Read a and b find ab and display result.

6.  Read number and find its factorial.

7.  Read two numbers (x,y) and find the sum of all numbers in between both numbers including both numbers. (Ex sum=x+(x+1)+(x+2)… +y)

8.   Read two numbers x and y and find and print the numbers which are divisible by k in between x and y.

9.   Read 'n' numbers from user and find the even biggest and odd biggest.

10. Read the number and find it is prime or not.

11. Read a length and find the algorithm for generating Fibonacci numbers.

12. Read x and write algorithm to evaluate y=1/(1-x)=1+x+x2+x3+…+xn




Assignment 1

 All the students are here by informed to join to this google class room click     All the students are here by informed to write the Assign...