User Profile
Collapse
-
tnx for the comment!! I will try % operator..... -
I have now my code, but the problem is: if the user inputs "1500" the output is not "One Thousand Five Hundred", but "1500"and "1Five Hundred"...What is my lacking?? Here's the code
...Code:import java.io.*; public class conversion { public static void main (String args[])throws Exception { String number; int amount;Leave a comment:
-
Converting number into word, how??
Frankly speaking, I have no code about this. I don't know how to start. This should be:
If the user inputs 1, the output is its corresponding word "one".
I need some help! -
This is now my code, but the lacking is the product of the factorial input, say: 5*4*3*2*1 (120 is the product). I tried factorial(n)=n* (n-1)*(n-2)*...1=n*facto rial(n-1) but the class cannot accepted it esp. the 3dots..what wil I do?
...Code:import java.io.*; public class factorialagain{ public static void main(String args[])throws Exception{ String number; int in,ans;Leave a comment:
-
-
-
I'm sorry... I am just down of what h**** is saying...peace! !!...Leave a comment:
-
I'M sorry guy!!!! If you hate giving codes, then DO'NT give anymore... In fact, your given CODE doesn't work... ...Leave a comment:
-
-
oh yah!! i am just using cp as an example.. thanks for the answers!.. next time, I'll try my best to ask USEFUL QUESTIONS......Leave a comment:
-
i think this is: if the user inputs 5, the result is: 5*4*3*2*1 and the product of that which is 120...Leave a comment:
-
factorial....God what is the code??
i think this is not right!!!!
...Code:import java.io.*; public class factorial{ public static void main (String args[])throws Exception { String number; int numberInteger; int n; System.out.print("Input number:"); InputStreamReader no= new InputStreamReader(System.in); BufferedReader num=new BufferedReader(no); number=num.readLine(); -
ALL i NEED IS ITS SYNTAX, sample in cp syntax:
cp [OPTION]... SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
cp [OPTION]... --target-directory=DIREC TORY SOURCE......Leave a comment:
-
format (command) syntax...
hi!!! i cannot find the proper SYNTAX of the command FORMAT in linux....help!! ! -
-
cess started a topic Using an Array, what is lacking to my code to have an output of ascending numbers?in JavaUsing an Array, what is lacking to my code to have an output of ascending numbers?
If the user input three numbers, say (1,3,2), how it will become 1,2,3 or in ascending order?? there is something wrong/lacking with my code, help plzzzz!!
...Code:import java.io.*; public class sign { public static void main (String args[])throws Exception { String number; int numberInteger; int[] temp; temp = new int[3]; int i; for (i=0;i<=2;i++) -
tnx for the support!! i got it!!!
...Code:import java.io.*; public class gcd { public static void main (String args[])throws Exception { String number; int numberInteger1,numberInteger2; int i=1; { System.out.print ("Enter first number:"); InputStreamReader no= new InputStreamReader(System.in); BufferedReader num=new BufferedReader(no);Leave a comment:
-
tnx..for the reply, but it did not work (below)...
...Code:import java.io.*; public class gcd { public static void main (String args[])throws Exception { String number; int numberInteger1,numberInteger2; int i=1; // ** start at 1 { System.out.print ("Enter first number:"); InputStreamReader no= new InputStreamReader(System.in); BufferedReader num=new BufferedReader(no);Leave a comment:
-
What is lacking to have the greatest common denominator of two given numbers?
Hi!!! i would like to know if what is lacking in the codes below to have a greatest common denominator of two given(by the user) numbers?? I'm confused and i need your help!
import java.io.*;
public class gcd {
public static void main (String args[])throws Exception
{
String number;
int numberInteger1, numberInteger2;
int i=0;
{
System.out.prin t...
No activity results to display
Show More
Leave a comment: