Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 #2

Open
eriolnik opened this issue Sep 29, 2020 · 1 comment
Open

1 #2

eriolnik opened this issue Sep 29, 2020 · 1 comment

Comments

@eriolnik
Copy link
Owner

eriolnik commented Sep 29, 2020

No description provided.

@eriolnik
Copy link
Owner Author

#include
using namespace std;
int main(){
int i,n;
cin >> n;
i = 1;
while (ii <=n){
cout << i
i << " ";
i=i+1;
}
return 0;
}

//1
#include
using namespace std;

int main(){
int x,y,z;
cin >> x>>y>>z;
if ((x+y)%2==0)
{cout << "condition is true"<< endl;}
else{ cout <<"condition is false"<<endl;}
if ((x<20)|(y<20))
{ cout <<"condition is true"<< endl;}
else { cout <<"condition is false"<<endl;}
if ((x == 0)|(y==0))
{ cout <<"condition is true"<< endl;}
else { cout <<"condition is false"<<endl;}
if ((x<0) & (y<0) & (z<0))
{ cout <<"condition is true"<< endl;}
else { cout <<"condition is false"<<endl;}
if ((x%5==0)|(y%5==0)|(z%5==0))
{cout <<"condition is true"<< endl;}
else { cout <<"condition is false"<<endl;}
if ((x>100)|(y>100)|(z|100))
{ cout <<"condition is true"<< endl;}
else { cout <<"condition is false"<<endl;}
return 0;
}

#include //2
using namespace std;
int main(){
int a,b,c,d;
cin >> a>>b>>c>>d;
if ((a == c) & (b == c))
{cout << "не угрожает"<< endl;}
else{ cout << "угрожает"<<endl;}
if((a-c)==(b-d))
{cout << "не угрожает"<< endl;}
else{ cout << "угрожает"<<endl;}
if (((a-c) == 1)|((b-d) == 1))
{cout << "не угрожает"<< endl;}
else{ cout << "угрожает"<<endl;}
if (((a-c) == (b-d))|((a==c)|(b==d)))
{cout << "не угрожает"<< endl;}
else{ cout << "угрожает"<<endl;}
if ((((a-c)-2)<0.5)&(((b-d)-2)<0.5))
{cout << "не угрожает"<< endl;}
else{ cout << "угрожает"<<endl;}
return 0;
}

#include //3
using namespace std;
int main(){
int a=1, n;
cin>>n;
do
{cout << a << "" << 7<<"="<<a7<<endl;
a++;}
while (a<=9);
a=1;
do
{cout << a << "" << n<<"="<<an<<endl;
a++;}
while (a<=9);
return 0;
}

#include //4-1
using namespace std;
int main(){
int a=8, p=1;
while (a<=15){
p=pa;
a++;}
cout << p;
return 0;
}
#include //4-2
using namespace std;
int main(){
int f,p1=1;
cin >>f;
while (f<20){
p1=p1
f;
f++;
}cout<<p1;
return 0;
}
#include //4-3
using namespace std;
int main(){
int b,p1=1;
cin >>b;
while ((b<20)&(b>1)){
p1=p1b;
b--;
}cout<<p1;
return 0;
}
#include //4-4
using namespace std;
int main(){
int b,m,p1=1;
cin >>b>>m;
while (b<=m)
{
p1=p1
b;
b++;
}cout<<p1;
return 0;
}

@eriolnik eriolnik mentioned this issue Oct 6, 2020
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant