/ Published in: Java
NapiÅ¡te program jehož vstupem jsou dva znaky. Program poté vypÃÅ¡e vÅ¡echny znaky, jejichž hodnoty jsou mezi hodnotami zadaných znaků.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import java.util.Scanner; public class ASCIICviceniÂ{ char o = a.charAt(0); char p = b.charAt(0); int x = (int)o; int y = (int)p; if(x < y){ for(int i = x + 1; i < y; i++){ } }else{ for(int i = y + 1; i < x; i++){ } } } }