SELECT * FROM products WHERE 1=1
$ sqlite3
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> select * from list;
public static String justifyText(String text, int maxChars) {
StringBuilder sb = new StringBuilder();
// collect words from text with maxChars (80) justification
// .....
return sb.toString();
}
Я не собираюсь становиться программистом, поэтому стандартные методы обучения мне совершенно не подходят.
.....
Мне необходимо программирование для решения прикладных задач
}catch(IndexOutOfBoundsException e) {
if (A<0) {
System.out.println("A меньше 0");
} else if (B<0) {
System.out.println("B меньше 0");
}
}
payment' :: Int -> [Int] -> [(Int,Int)] -> [(Int,Int)]
payment' sum nom res
| sum > 0 = if sum - h >= 0
then payment' (sum - h) nom $ (h,1) : res
else payment' sum (tail nom) res
| otherwise = res
where h = head nom
payment :: Int -> [(Int,Int)]
payment sum = payment' sum (reverse [1,2,5,10,50,100,500]) []
Prelude> payment 951
[(1,1),(50,1),(100,1),(100,1),(100,1),(100,1),(500,1)]