For (初始式,条件式,更新式...

数学
For (初始式,条件式,更新式) { //注释

用户头像
Administrator 更新于2025-1-3 07:32:53

#include <iostream>

#include <stdlib.h>

#include <time.h>

using namespace std;


int main()

{

    For (int w=0,w<5,w++) {

        srand (time(NULL));

        int alpha;

        alpha=rand()%100;

        int bravo,sigma=0;

        bravo = sigma;

        sigma = bravo+alpha*2025*w;

    }

    printf ("祝2025年你获得%d元",sigma);

    return 0;

}

        

收起
2
0
共1条回复
时间正序
用户头像
Amadeus
5月前
return 0;好评