Coder Social home page Coder Social logo

1 about new1 HOT 1 OPEN

eriolnik avatar eriolnik commented on July 26, 2024
1

from new1.

Comments (1)

eriolnik avatar eriolnik commented on July 26, 2024

#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;
}

from new1.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.