class HelloWorld {
public static void main
( String [ ] args
) { // int x = 10;
for ( int x = 1 ; x< 11 ; x++ ) {
if ( x== 1 ) {
name = "бутылка" ;
}
if ( x== 2 | x== 3 | x== 4 ) {
name = "бутылки" ;
}
if ( x > 4 & x < 21 ) {
name = "бутылок" ;
}
System .
out .
println ( "У нас есть " + x
+ name
) ; }
}
}
Y2xhc3MgSGVsbG9Xb3JsZCB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgLy8gaW50IHggPSAxMDsKCQlTdHJpbmcgbmFtZSA9IG51bGw7CgkJCiAgICAgICAgZm9yIChpbnQgeCA9IDE7IHg8MTE7IHgrKyl7CiAgICAgICAgCQoJICAgICAgICBpZih4PT0xKXsKCSAgICAgICAgCW5hbWUgPSAi0LHRg9GC0YvQu9C60LAiOwoJICAgICAgICB9CgkgICAgICAgIGlmKHg9PTIgfCB4PT0zIHwgeD09NCl7CgkgICAgICAgIAluYW1lID0gItCx0YPRgtGL0LvQutC4IjsKCSAgICAgICAgfQoJICAgICAgICBpZih4ID4gNCAmIHggPCAyMSl7CgkgICAgICAgIAluYW1lID0gItCx0YPRgtGL0LvQvtC6IjsKCSAgICAgICAgfQoJICAgICAgICAKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oItCjINC90LDRgSDQtdGB0YLRjCAiICsgeCArIG5hbWUpOwogICAgICAgIH0KICAgICAgICAKICAgIH0KfQ==