My Math Forum  

Go Back   My Math Forum > Science Forums > Computer Science

Computer Science Computer Science Forum


Thanks Tree1Thanks
  • 1 Post By skipjack
Reply
 
LinkBack Thread Tools Display Modes
March 10th, 2019, 01:07 AM   #1
Banned Camp
 
Joined: Nov 2018
From: Mumbai

Posts: 32
Thanks: 1

Reverse Factorial number series.

To Find Factorial Of A Number Using C Program | Basic , medium ,expert programs example in c,java,c/++

Can we write a computer program which will print
the factorials in reverse order?

Programming languages could be C,C++,Java,C#, Python etc.

Output of the program : 120,24,6,2,1

Start with 120, end with 1.

Thanks & Regards,
Prashant S Akerkar
akerkarprash is offline  
 
March 10th, 2019, 01:27 AM   #2
Global Moderator
 
Joined: Dec 2006

Posts: 20,919
Thanks: 2203

print "120,24,6,2,1"
Thanks from topsquark
skipjack is offline  
March 10th, 2019, 07:19 AM   #3
Math Team
 
Joined: Oct 2011
From: Ottawa Ontario, Canada

Posts: 14,597
Thanks: 1038

Do it the regular way, storing results in an array...
Then print array in reverse !
Denis is offline  
Reply

  My Math Forum > Science Forums > Computer Science

Tags
factorial, number, program, reverse, series



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse Geometric Series computer program. akerkarprash Computer Science 9 March 10th, 2019 12:02 PM
Reverse Arithmetic progression series computer program. akerkarprash Computer Science 3 March 10th, 2019 06:38 AM
Reverse Fibonacci series. akerkarprash Computer Science 9 March 9th, 2019 07:31 PM
Reverse of a floating or decimal point number akerkarprashant Computer Science 6 November 2nd, 2018 10:06 AM
The number of a number in the prime factorization of a factorial CSandMathsGuy Number Theory 3 August 16th, 2018 12:14 PM





Copyright © 2019 My Math Forum. All rights reserved.