import javax.swing.*;
public class Substring{
public static void main (String a[]){
String m = JOptionPane.showInputDialog("Enter a String:");
String sub =...
Type: Posts; User: cutee_eyeh
import javax.swing.*;
public class Substring{
public static void main (String a[]){
String m = JOptionPane.showInputDialog("Enter a String:");
String sub =...
..in diamond formation..
..the output should look like this
*
* *
* * *
* *
*
..but then the output of this program is
*
...
..this is a correct code but then the numbers that should be in prime the output would be in composite for example we input 1 the output would be the 1 is composed of 1..thank you..
public class Diamond {
public static void main(String args[]){
int n,i,j,k;
do {
n = (int)(3);
}while(n % 2 ==...
import java.util.Scanner;
public class erelle{
private static String comps;
public static void main(String[] args){
Scanner input = new Scanner(System.in);
...