Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Sourav Kumar 3 years, 10 months ago
- 0 answers
Posted by Anmol Chawla 3 years, 10 months ago
- 0 answers
Posted by Thakur Abhishek Raghuvanshi 3 years, 10 months ago
- 2 answers
Preeti Dabral 3 years, 10 months ago
# python program to find the sum of series: 1 + x² + x³ + ... + xⁿ
n = int(input('Enter the value of n: '))
x = int(input('Enter the value of x: '))
sum_of_series = 0
for i in range(n+1):
sum_of_series += pow(x,i)
print('Sum of the series is:', sum_of_series)
- Input the value of x and n from user as integer type
- define a variable with value of zero to add up till the sum of series, this must be outside the loop, else each time the loop repeats value will set to zero defeating the purpose.
- we use for loop with range of i varying from 0 to n (remember this is not for infinite series) giving the power of x from 0 to n
- evey iteration we add x^i to the sum
- finally print the sum of series
Anmol Chawla 3 years, 10 months ago
Posted by Thakur Abhishek Raghuvanshi 3 years, 10 months ago
- 0 answers
Posted by Thakur Abhishek Raghuvanshi 3 years, 10 months ago
- 1 answers
Sia ? 3 years, 10 months ago
num = int(input("Enter a number: "))
sum = 0
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** 3
temp //= 10
if num == sum:
print(num,"is an Armstrong number")
else:
print(num,"is not an Armstrong number")
Posted by Thakur Abhishek Raghuvanshi 3 years, 10 months ago
- 1 answers
Sia ? 3 years, 10 months ago
n = int(input("Enter any number: ")) sum1 = 0 for i in range(1, n): if(n % i == 0): sum1 = sum1 + i if (sum1 == n): print("The number is a Perfect number! ") else: print("The number is not a Perfect number! ")
Posted by Vishal Kumar 3 years, 10 months ago
- 1 answers
Sia ? 3 years, 10 months ago
Some experts argue, however, that VoIP specifically refers to sending voice traffic over an IP network. In contrast, IP telephony is a broader umbrella term that refers to any telephone-type communication service carried over IP -- this could include faxing, text messaging and more.
Posted by Manish Kumar 3 years, 10 months ago
- 3 answers
Dhwani Jain 3 years, 10 months ago
Posted by Bijayanee Samal 3 years, 10 months ago
- 1 answers
Posted by 5516 M. Vinaykumar 3 years, 11 months ago
- 3 answers
Sourav Kundu 3 years, 10 months ago
Aaditay . 3 years, 10 months ago
Posted by 5516 M. Vinaykumar 3 years, 11 months ago
- 2 answers
Sourav Kundu 3 years, 10 months ago
Aman Sharma 3 years, 11 months ago
Posted by Prem Sharma 3 years, 11 months ago
- 1 answers
Akhil K 3 years, 11 months ago
Posted by Aman Pandey 3 years, 11 months ago
- 2 answers
Sourav Kundu 3 years, 10 months ago
Akhil K 3 years, 11 months ago
Posted by Akshaya Selvaraju 3 years, 11 months ago
- 0 answers
Posted by Priya Rai 3 years, 11 months ago
- 1 answers
Prem Sharma 3 years, 11 months ago
Posted by Priya Rai 3 years, 11 months ago
- 1 answers
Sourav Kundu 3 years, 10 months ago
Posted by Arnav Dutta 3 years, 11 months ago
- 0 answers
Posted by Badana Praveen 3 years, 11 months ago
- 0 answers
Posted by Sinku Sinku 3 years, 11 months ago
- 0 answers
Posted by Sarthak Tripathy 3 years, 11 months ago
- 0 answers
Posted by Saloni Tarekar 3 years, 11 months ago
- 0 answers
Posted by Anagha Anu 3 years, 11 months ago
- 0 answers
Posted by Ajay Kumar 3 years, 11 months ago
- 0 answers
Posted by Aadhi Varadharajan 4 years ago
- 2 answers
Ketan Ch 3 years, 11 months ago
Posted by Aditi Aditi 4 years ago
- 1 answers
Vp Tech 4 years ago
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Sia ? 3 years, 10 months ago
Input unit and its significance:
Input unit refers to those devices which take input from the outside environment and converts it to the binary language which the computer can understand.
Significance of the Input unit:
This unit is very important in the computer because it is the medium through which user can send information into the computer and converts it into ‘binary language’.
The computer unit consists of the following units:
0Thank You