Guest User

Untitled

a guest
Sep 25th, 2014
1,383
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Projekt {
  2. public static void main(String[] args) {
  3. int chislo = 0;
  4. int chetchik = 0;
  5. char sim = '5';
  6. while(true){
  7. System.out.print(chislo + " ");
  8. String str = Integer.toString(chislo);
  9. int kol = str.length();
  10. for (int i = 0; i < kol; i++){
  11. if (str.charAt(i) == sim) chetchik = chetchik + 1;
  12. }
  13. chislo = chislo - 5;
  14. if (chetchik > 1) break;
  15. }
  16. }
  17. }
RAW Paste Data