Documente Academic
Documente Profesional
Documente Cultură
return 0;
}
}
if(x%2==0)
x=x+1;
while (x<=y)
{
x=x + 2;
cout<<'*';
}
return 0;
}
return 0;
}
return 0;
}
return 0;
}
29 citeste n,m #include <iostream>
(numere naturale)
┌cât timp n≤m execută using namespace std;
│ n←n+1
│ m←m-1 int main()
└■ {
┌cât timp m<n execută int n,m;
│ m←m+1 cin>>n>>m;
│ n←n-1 while (n<0)
└■ cin>>n;
scrie n while (m<0)
cin>>m;
while (n<=m)
{
n=n + 1;
m=m - 1;
}
while(m<n)
{
m=m + 1;
n=n - 1;
}
cout<<n;
return 0;
}