No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
The greatest common divisor of integers x and y is the largest integer that evenly divides both x and y. Write a recursive method Gcd that returns the greatest common divisor of x and y. The Gcd of x and y is defined recursively as follows: If y is equal … |
|
[CODE]package javaapplication1; public class Main { public static void main(String[] args) { //display the table heading System.out.print(" Multiplication Table\n"); System.out.print("------------------------------\n"); //Display the number title System.out.print(" "); for(int j=1;j<=9;j++) System.out.print(" "+j); System.out.print("\n"); //Print the body of the table for(int i=1;i<=9;i++) { System.out.print(i+" | "); for (int j=1;j<=9;j++) { if(i*j<10) System.out.print(" "+i*j); … |
|
Re:
Hi everyone, My name is babs a level 3 undergradute of Ogun State university in Nigeria I joined this forum to enable me to be exposed to the IT world,especially to know more about the applications of what am been thought in school.Then i would be able to deseminate my … |