public static void main(String[] args) {
double x = 0.1;
double n = 4;
int b = 0;
if (n==x+x)
{
System.out.print("Lala"+x);
}
else{
while(n>x+x)
{
x = x+x;
b++;
}
}
System.out.print(b+" "+x);
}
*, *:before, *:after{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body
{
font-size: 16px;
min-width: 320px;
position: relative;
line-height: 1.75;
overflow-x: hidden;
}
input[type="text"] {
width: 25%;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
padding: 0.5%;
border: 2px solid #3fbaeb;
font-size: 120%;
}
.grid{
display: grid;
}
.grid-parti{
z-index: 1;
padding: 10px;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
.grid-parti1:before{
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(94, 91, 96, 0.65);
}
.grid-parti1:hover:before{
background-color: rgba(94, 91, 96, 0.8);
}
.grid-parti1{
z-index: 1;
min-height: 32vh;
color: white;
background-position: center;
background-size: cover;
align-content: center;
text-align: center;
padding: 10px;
position: relative;
transition: .5s ease;
cursor: pointer;
}
.grid-parti1:hover{
z-index: 1;
color: #3fbaeb;
}
.grid-parti1:nth-child(1){
grid-column: 1/3;
}
.grid-parti1:nth-child(5){
grid-column: 2/4;
}
.grid-parti1:nth-child(6){
grid-column: 4;
grid-row: 2/4;
}
.grid-call{
display: grid;
grid-template-columns: 1fr;
grid-column-gap: 15%;
grid-auto-rows: 100%;
margin-top: 6%;
text-align: center;
}
.grid-call1{
padding:1.5%;
}
.start
{
min-height: 100vh;
background-size: cover;
background-position: center;
position: relative;
}
.header-content{
color: white;
text-align: center;
align-content: center;
background-color: rgba(94, 91, 96, 0.8);
min-height: 100vh;
padding: 3% 7%;
}
h1{
font-size: 50px;
margin: 20px 0;
line-height: 1.5;
}
.button {
cursor: pointer;
text-decoration: none;
position: relative;
background: beige;
text-align: center;
display: inline-block;
border-radius: 5px;
padding: 10px 55px;
font-size: 20px;
margin: 20px;
color: white;
background: #55acee;
box-shadow: 0 5px 0 #3C93D5;
}
.button:hover {
background: #6FC6FF;
box-shadow: 0 5px 0 #4fa1e3;
}
.button:active{
background-color: #2380cc;
box-shadow: 0 5px 0 #006dc7;
}
.button-grey{
background-color: rgba(94, 91, 96, 1);
box-shadow: 0 5px 0 #404040;
}
.button-grey:hover {
background: #696969;
box-shadow: 0 5px 0 #525252;
}
.button-grey:active{
background-color: #4f4f4f;
box-shadow: 0 5px 0 #303030;
}
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href="css/animate.css" rel="stylesheet" text="text/css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="shortcut icon" href="img/Logo-mini.ico" type="img/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header class="start grid" style="background-image: url(img/3.jpg);">
<div class="header-content grid">
<h1>We can make yoer best web sites</h1>
<div class="header-buttons">
<a class="button" href="#">Go</a>
<a class="button button-grey" href="#">Read</a>
</div>
</div>
</header>
<div class="grid-menu">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="grid-parti grid">
<div class="grid-parti1 grid" style="background-image: url(img/prf/1.jpg);"><h2>item 1</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/2.jpg);"><h2>item 2</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/3.jpg);"><h2>item 3</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/4.jpg);"><h2>item 4</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/5.jpg);"><h2>item 5</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/6.jpg);"><h2>item 6</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/7.jpg);"><h2>item 7</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/8.jpg);"><h2>item 8</h2></div>
<div class="grid-parti1 grid" style="background-image: url(img/prf/9.jpg);"><h2>item 9</h2></div>
</div>
<div class="grid-call">
<div class="grid-call1"></div>
</div>
<div class="grid-summ">
<div class="grid-summ1"><input type="text"></div>
<div class="grid-summ1"><input type="text"></div>
</div>
<script>new WOW().init();</script>
<script src="js/wow.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>