Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for NexG

Hey all! I'm new here :) found this while I was searching for answers for my programming questions. Sooo. Name: Kevin Nick: W/E YOU WANNA CALL ME. Age: 18 Occupation: Student Idk what else to write LOL I'll be here a bit so hope to get to know lots of …

Member Avatar for Onlineshade
0
67
Member Avatar for NexG

This is my attempt at the Euclid Algorithm. I would like it if someone could give me some pointers on how to fix this so that it would work. It compiles fine. [CODE]import java.util.Scanner; public class Euclid{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter the first …

Member Avatar for NexG
0
115
Member Avatar for NexG

[CODE]import java.util.Scanner; public class sum{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter n: "); int n = scanner.nextInt(); System.out.print("Enter m: "); int m = scanner.nextInt(); int sum = 0; for(int i = 0; i<=n; i++){ for(int j = i+1; j<=n; j++){ sum = i * j; …

Member Avatar for NexG
0
110
Member Avatar for NexG

Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner …

Member Avatar for NexG
0
2K
Member Avatar for NexG

Not asking for code, but I'm wondering if anyone can give me some advice and pointers for writing a code that reverses an inputted int, without using the string reverse.

Member Avatar for NexG
0
180
Member Avatar for NexG

import java.util.Scanner; public class fibonacci{ public static void main(String[] args){ int n=0; int fib = n+1; Scanner X=new Scanner(System.in); System.out.print("Enter # of the term: "); n = X.nextInt(); for (int i=3; i<=n; i++) { i = i-1 + i-2; } System.out.print("Term is: "+n); } } I know the algorithm is …

Member Avatar for NexG
0
152
Member Avatar for NexG

Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] …

Member Avatar for Rameshwar Soni
0
211