3.2.8 gotokeyword

来源:互联网 发布:网络插画班比较好的 编辑:程序博客网 时间:2024/05/18 15:25
#include <iostream>using namespace std;int main(){long val=0;for(int i=1;i<1000;i++){    for (int j=1;j<100;j+=10){        val=i*j;        if(val>47000)            goto bottom;    }}bottom:    cout<<val<<endl;}