Created
March 31, 2015 14:30
-
-
Save Sergaav/35d73a48dabd1082845b to your computer and use it in GitHub Desktop.
dz4_3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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