Python Program to Find Product of Digits - In Hindi

preview_player
Показать описание
Python Program to Find Product of Digits - In Hindi - Tutorial #25

In this video, I have explained a program to find product of digits of a given number.
For Example if the given number is 153 then we have to find the product of its digits i.e. 1*5*3= 15.

We will do product of digits program using While statement. While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts:

1. Initialization of counter variable.
2. Condition
3. Increment/Decrement of counter variable

While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly.

#codeitup
#whileloop
#python
Рекомендации по теме
Комментарии
Автор

Sir Mai aapki saari video dekh rha hu, you are great sir

ankitsaxena
Автор

"My blessings is with you Sir that you soon get many subscribers "

nipuntripathi
Автор

Thank you bhai itne acche se coding sikhane ke liye
🙂🙂👏👏👌

sircar
Автор

Sir aap bahut accha pdha rhe ho python ken bare mai sir ek baar plzzz break while loop k bata dijiye

sakshisharma
Автор

Sir ur video in very easy to understand the concept.thanks

charchitacharya
Автор

program has error, giving output zero when we input number which contains zero, i.e. 105, please check and suggest the solution. thank you, keep the good work up

RajuKumar-cgqb
Автор

sir aapke programe me kuch gadbad hai
aap 52, 25, 58, aaise number lijiye matlab jisko multiply kar ke last digit 0 aa raha ho usme bas 0 hi print hota hai

Nishantkumar-cmlw
Автор

When number is 0 the product shown is 1

nitishpaliwal
Автор

Write a python program to find the product of two values. Take
input from the user. plz sir

rahuldhandhi
Автор

Sir program to check Pythagorean triplets....plzzzz sir

kanagalabalasubrahmanyam
Автор

My pc is showing error in this is showing "prod" as invalid syntax tell me what to do.???!!!!

vishalsisodiya
Автор

What if a number is 240.
Prod=prod*i %10
Will be zero.

meghachatterjee
Автор

Sir if a number is 107 or any no which contain zero. Then output is 0 .. sir please

vilaskumarsanap
Автор

Hello can do a session about advance python

parampritamchakra
Автор

Hello sir
mujhe ek question me doubt hai
usme ek error aa rha hai line 7 me
question ->
Program that inputs three numbers and calculates two sums as per this:
Sum1 as the sum of all inputs
Sum2 as the sum of non-duplicate numbers;if there are duplicate numbers in the input, ignores them.
eg. Input of numbers 2, 3, 4 will give two sums as 9 and 9
Input of numbers 3, 2, 3 will give two sums as 8 and 2
Input of numbers 4, 4, 4 will give two sums as 12 and 0

and sir yeh mera code hai
jisme line 7 me error show kar rha hai

i=int(input('Enter number 1:'))
j=int(input('Enter number 2:'))
k=int(input('Enter number 3:'))
sum1=0
sum2=0
sum1=i+j+k
if (i=j and i=k):
sum2=0
if (i!=j and i!=k):
sum2=i
if (i!=j!=k):
sum2=sum1
print('Sum 1:', sum1)
print('Sum 2 :', sum2)ṅ

srijangupta
join shbcf.ru