I for one prefer plain text rather than HTML for email.
Please in the future post plain text. No colors, no unusual fonts.
Makes it a LOT easier to read.
--
Bob Gailer
919-636-4239
Chapel Hill NC
___
Tutor maillist - Tutor@python.org
To unsubscribe
Debashish Saha wrote:
*PROGRAM TO FIND FACTORIAL OF A NUMBER(I HAVE WRITTEN IT ON GEDIT)*
This program is irrelevant. Your question has nothing to do with factorial of
numbers. It is about getting input from the user. As you ask:
HOW TO ASK INPUT FROM USER THEN?
The answer is:
Do not use
On 04/02/2012 10:11, Debashish Saha wrote:
_PROGRAM TO FIND FACTORIAL OF A NUMBER(I HAVE WRITTEN IT ON GEDIT)_
x=1
n=input('enter a positive integer no:')
for i in range(1,1+n):
x=x*i
print x
_ERROR:_
enter a positive integer
no:
*PROGRAM TO FIND FACTORIAL OF A NUMBER(I HAVE WRITTEN IT ON GEDIT)*
x=1
n=input('enter a positive integer no:')
for i in range(1,1+n):
x=x*i
print x
*ERROR:*
enter a positive integer
no:---
EOFError