Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Source: https://usaco.guide/general/io
- #include <iostream>
- using namespace std;
- int main() {
- int a, b, c;
- string X;
- cin >> X >> b;
- cout << X << " sadfkjlk " << b << endl;
- if(b<10){
- cout<<"This number is small";
- } else {
- cout<<"This number is big";
- }
- if(X == "hey"){
- cout<<"hi"<<endl;
- }
- X="bye";
- b=5;
- cout << X << " sadfkjlk " << b << endl;
- // bool d=true;
- // if(d){
- // cout<<"d is true";
- // }
- while(b<10){
- b=b+1;
- cout<<b<<endl;
- }
- int x[10];//initializing an array
- int index=1;
- while(index<10){
- x[index]=index;
- cout<<x[index]<<endl;
- index=index+1;
- }
- x[5]=1;
- cout<<x[5]<<endl;
- }
Add Comment
Please, Sign In to add comment