Skip to content

Instantly share code, notes, and snippets.

@Sergaav
Created March 31, 2015 14:30
Show Gist options
  • Save Sergaav/35d73a48dabd1082845b to your computer and use it in GitHub Desktop.
Save Sergaav/35d73a48dabd1082845b to your computer and use it in GitHub Desktop.
dz4_3
package com.gmail.sergaav.dz4_3;
import java.util.Scanner;
import java.util.Arrays;
public class dz4_3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("How much money do you have?");
String n;
int dollars;
int cents;
n = sc.nextLine();
char [] mas = n.toCharArray();
switch (mas[i]){
case
}
for (int i = 0; i < mas.length; i++) {
System.out.print(mas[i]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment