彩票

#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
	srand(time(0));
	int a=rand()%5+1;
	int b;
	
	cin>>b;
	if(a==b){
		cout<<"中奖了";
	}else{
		cout<<"没中奖,号码是:"<<a;
	}
	
	
	
	return 0;
}

  

posted @ 2023-05-13 18:50  陈若麟  阅读(4)  评论(0编辑  收藏  举报