You are on page 1of 1

Sheet

LOOP 2:

1- Write a program to calculate average of even and odd numbers from 10


numbers which will be entered by the user.
2- Write a program to sum first 15 terms from the series
0,1,1,2,3,5,8,13,……………
3- Write a program to calculate
𝐬 = 𝟎. 𝟗 + 𝟎. 𝟗𝟗 + 𝟎. 𝟗𝟗𝟗 + 𝟎. 𝟗𝟗𝟗𝟗 + 𝟎. 𝟗𝟗𝟗𝟗𝟗 + 𝟎. 𝟗𝟗𝟗𝟗𝟗𝟗
4- Write a program to calculate
𝐬 = 𝟏. 𝟗 + 𝟏. 𝟗𝟗 + 𝟏. 𝟗𝟗𝟗 + 𝟏. 𝟗𝟗𝟗𝟗 + 𝟏. 𝟗𝟗𝟗𝟗𝟗 + 𝟏. 𝟗𝟗𝟗𝟗𝟗𝟗
5- Write a program to calculate 1^1+2^2+3^3+…………..+7^7
𝐱 𝐱 𝐱 𝐱
6- 𝐒𝐮𝐦 = 𝐱 + + + + ⋯. +
𝟐 𝟑 𝟒 𝐍
𝐱 𝐱 𝐱
7- 𝐒𝐮𝐦 = 𝐱 + + + + ⋯. +𝐍
𝟐 𝟑 𝟒
𝐱𝟐 𝐱𝟑 𝐱𝟒 𝐱𝐧
8- 𝐒𝐮𝐦 = 𝐱 + + + + ⋯. +
𝟐 𝟑 𝟒 𝐍

9- 𝐒𝐮𝐦 = 𝟏! + 𝟐! + 𝟑! + 𝟒! + ⋯ + 𝐧!
10- 𝐒𝐮𝐦 = 𝟏! + 𝟑! + 𝟓! + 𝟕! + ⋯ + 𝐧!
𝐱𝟐 𝐱𝟑 𝐱𝟒 𝐱𝐧
11- 𝐒𝐮𝐦 = 𝐱 + + + + ⋯. +
𝟐! 𝟑! 𝟒! 𝐍!

You might also like