Update xeinit.cpp to version 2

This commit is contained in:
daleclack 2020-10-21 06:50:00 +08:00 committed by GitHub
parent cecc5e8906
commit a4dc512b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

15
cpp/xeint2.cpp Normal file
View File

@ -0,0 +1,15 @@
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a=0,b;
printf("Press Ctrl+C to stop");
for(;;){
a=rand();
b=a;
a%=2;
//getchar();
}
printf("%d %d",a,b);
return 0;
}