lab6-124

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int n; cout << "Input a number:"<<endl; cin>>n; //124 The sequence a1, a2, ..., an consists of zeros and ones. for(int i=1;i<=n;i++) { if(i<n/2) cout<<"0"<<endl; else cout<<"1"<<endl; } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines