473,473 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

need java program for follwing outputs....

16 New Member
Hi Everybody,

Can anyone send me the java code for printing the series like..

1 + 1/2! + 1/4! + 1/8! +....+(N terms).

I also need program to print the out put like:

if 123 isthe input number we give,it should print One Hundered and Twenty Three.

Please send it to my personal id: vinoda_ch@yahoo.co.in

Thanks & Regards
Vinoda.
Mar 12 '07 #1
1 1205
r035198x
13,262 MVP
Hi Everybody,

Can anyone send me the java code for printing the series like..

1 + 1/2! + 1/4! + 1/8! +....+(N terms).

I also need program to print the out put like:

if 123 isthe input number we give,it should print One Hundered and Twenty Three.

Please send it to my personal id: vinoda_ch@yahoo.co.in

Thanks & Regards
Vinoda.
Write a function to get factorial first and then just use a for loop to get your series calling that factorial function for each term.
Mar 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

30
by: Mike Cox | last post by:
Hi. I recently ran a benchmark against two simple programs, one written in Java and the other in C++. The both accomplish the same thing, outputting "Hello World" on my screen. The C++ program...
7
by: Steve M | last post by:
I'm trying to invoke a Java command-line program from my Python program on Windows XP. I cannot get the paths in one of the arguments to work right. The instructions for the program describe the...
8
by: Mitch | last post by:
Scenario: Heavily data driven application to be written. Relies on huge SQL database to pull information in real time, outputs created tables into excel and word documents for customer outputs....
2
by: Janna | last post by:
I have the Java JVM installes on my server. I uncommented extension=php_java.dll in php.ini I uncommented and proerpyl filled out the section in php.ini: java.class.path...
2
IT Master2
by: IT Master2 | last post by:
hi every 1: when i open phpinfo().php page there is no mention for "java support" "java bridge" or any thing deal with java. so how can i include them in php.ini file? i've tried many ways to...
7
by: rohitsripathi | last post by:
i need help writing this program... i am in college and i do not have time do this right now as i need to study for another test....but this is due tonight...i will pay $5 if you accept to do it and...
4
by: sasimca007 | last post by:
Hello friends, I installed java with the following command: sudo apt-get update synaptic...
11
by: BigZero | last post by:
Hello, can i call Java method.That is java code from php,here what i m looking for i have class called DB in this class all the DB related things ,like DB connection DB insert,DB read etc...
6
by: paradox6996 | last post by:
import java.util.Scanner; public class Program01C { public static void main(String args) { double purchase, totalTax, salesTax, countyTax, total; salesTax = 0.04; countyTax =...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.