又是学神骗分法,不过有点复杂

魈凯KBS  •  5个月前


include<bits/stdc++.h>

using namespace std; int main(){

cout<<"1*1=1"<<endl;

cout<<"12=2 22=4"<<endl;

cout<<"13=3 23=6 3*3=9"<<endl;

cout<<"14=4 24=8 34=12 44=16"<<endl;

cout<<"15=5 25=10 35=15 45=20 5*5=25"<<endl;

cout<<"16=6 26=12 36=18 46=24 56=30 66=36"<<endl;

cout<<"17=7 27=14 37=21 47=28 57=35 67=42 77=49"<<endl; cout<<"18=8 28=16 38=24 48=32 58=40 68=48 78=56 88=64"<<endl; cout<<"19=9 29=18 39=27 49=36 59=45 69=54 79=63 89=72 99=81"<<endl;

return 0; }


评论:

第二种正经一点,BUT有点长

include <bits/stdc++.h>

using namespace std;

int main() { int i,j; for(i=1; i<=9; i++) {

for(j=1; j<=9; j++) { cout<<j<<""<<i<<"="<<ij<<" "; if(i*j<10) { cout<<" "; } if(i<=j) { break; } } cout<<'\n'; }

return 0; }


魈凯KBS  •  5个月前