/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
for(int i=0; i<100; i++) cout<<(i%2);
for(int i=0; i<98; i++){
cout<<"\n1";
for(int j=0; j<99; j++) cout<<0;
} cout<<'\n';
for(int i=0; i<100; i++) cout<<((i+1)%2);
return 0;
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | /****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <iostream> using namespace std; int main() { for(int i=0; i<100; i++) cout<<(i%2); for(int i=0; i<98; i++){ cout<<"\n1"; for(int j=0; j<99; j++) cout<<0; } cout<<'\n'; for(int i=0; i<100; i++) cout<<((i+1)%2); return 0; } |
English