sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: c program for finding factorial.....give an idea plzzzz
Forum Index -> Computer Science like the article? email it to a friend.  
Author Message
alienallys (72)

Hot goIITian

Olaaa!! Perrrfect answer. 14  [15 rates]

alienallys's Avatar

total posts: 101    
offline Offline
c program for finding factorial.....give an idea plzzzz
    
alienallys (72)

Hot goIITian

Olaaa!! Perrrfect answer. 14  [15 rates]

alienallys's Avatar

total posts: 101    
offline Offline
any one here learning or completed C
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
v22 (19)

Cool goIITian

Olaaa!! Perrrfect answer. 3  [5 rates]

v22's Avatar

total posts: 63    
offline Offline
int x = 1
for ( i = n , i >1 , i--)
{
x = x * i ;
}

cout << x
 this reply: 5 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
alienallys (72)

Hot goIITian

Olaaa!! Perrrfect answer. 14  [15 rates]

alienallys's Avatar

total posts: 101    
offline Offline

#include <stdio.h>




void main()

{
int i,j,n;


printf("enter a number");

scanf("%d",&n);
j=1;

for (i=1; i<=n; i++)

j=j*i;

printf("The factorial of %d is %d\n",n,j);

}
 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
alienallys (72)

Hot goIITian

Olaaa!! Perrrfect answer. 14  [15 rates]

alienallys's Avatar

total posts: 101    
offline Offline

i think u hav given for c++..........but i got the idea frm that....thanx

 this reply: 0 points  (with Olaaa!! Perrrfect answer.   in 0 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Computer Science
Go to:   

 Aakash Institute IIT/ AIEEE/ Medical Crash Course
Name  
E-mail  
Phone  
Mobile  
** Hurry. Exclusive goIIT Offer. Limited Seats Only!
available in: New Delhi, Amritsar, Bhatinda, Bokaro, Chandigarj, Dehradun, Guwhati, Hyderabad, Indore, Jaipur, Kanpur, Karnal, Kolkata, Kota, Lucknow, Ludhiana, Mumbai, Noida, Patiala, Patna, Pune, Ranchi, Varanasi
Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Aakash-IITJEE : AIEEE
Aakash-IITJEE : DCE
Aakash-IITJEE : MHTCET
Aakash Institute : AIPMT
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya