skip to main
|
skip to sidebar
Just-programming
Programs Based on c/c++/java
Social Icons
Pages
Home
Data Structure
Graphics
Linux
Java
DBMS
Wednesday, 1 May 2013
Factorial Of a No. Using Shell Program
#!/bin/sh
fact=1;
echo -n "Enter any no to find factorial : "
read n
for((i=1;i<=n;i++))
do
((fact=$fact * $i))
done
echo " .............factorial of the no. is : ........ : $fact"
exit 0
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2021
(2)
►
May
(2)
►
2020
(2)
►
January
(2)
►
2014
(22)
►
December
(1)
►
September
(1)
►
May
(9)
►
March
(2)
►
February
(9)
▼
2013
(59)
►
December
(12)
►
November
(1)
►
October
(2)
►
September
(14)
►
August
(7)
▼
May
(18)
Reversing a linked list inserted from begining
Time Using Strftime Function
Time Using Ctime Function
Time Using Localtime Function
Time Function Using C program
Thread cancelletion Using Deferred Cancel Type
Machine Information Using Library Function getuid,...
Sum And Product Using Getopt Function
Copying Files content Using Read & write system call
Reading Files Of a Directory
1 12 123 1234 12345 Pattern Using Shell Programme
Loop Patterns Using Shell Commands
Geometric Progression Using shell
Cheking Number is Palindrome
Reverse Of a No.
Factorial Of a No. Using Shell Program
Shell Programming [If- Else]
Excuting Command in C program using "system" function
►
April
(5)
Labels
DATA
(6)
DBMS
(13)
JAVA
(16)
Linux
(21)
OPENGL GRAPHICS
(12)
PYTHON
(4)
Facebook
Popular Posts
1 12 123 1234 12345 Pattern Using Shell Programme
Moving fan using java Applet
Generating Random No. In java
Loop Patterns Using Shell Commands
Moving Torus in opengl
goprograming. Powered by
Blogger
.
Social Icons
Search This Blog
Sample Text
Sample text
Just Programming Cse Drive
Reputation Management
No comments:
Post a Comment