Skip to main content
added 2 characters in body
Source Link
FoxyZ
  • 71
  • 1
  • 2

C++, 106106 98 bytes

I used two loops and a few tricks.

#import <iostream><cstdio>
main(){for(int i=0i,j;i++-9;j=0)while(j++-i)std:printf("%dx%d=%d%c",j,i,i*j,j<i?32:cout<<j<<'x'<<i<<'='<<i*j<<"\n "[j<i];10);}

C++, 106 bytes

I used two loops and a few tricks.

#import <iostream>
main(){for(int i=0,j;i++-9;j=0)while(j++-i)std::cout<<j<<'x'<<i<<'='<<i*j<<"\n "[j<i];}

C++, 106 98 bytes

I used two loops and a few tricks.

#import <cstdio>
main(){for(int i,j;i++-9;j=0)while(j++-i)printf("%dx%d=%d%c",j,i,i*j,j<i?32:10);}
deleted 5 characters in body
Source Link
Riker
  • 7.9k
  • 4
  • 39
  • 73

C++, 106 charactersbytes

I used two loops and a few tricks.

#import <iostream>
main(){for(int i=0,j;i++-9;j=0)while(j++-i)std::cout<<j<<'x'<<i<<'='<<i*j<<"\n "[j<i];}

C++, 106 characters

I used two loops and a few tricks.

#import <iostream>
main(){for(int i=0,j;i++-9;j=0)while(j++-i)std::cout<<j<<'x'<<i<<'='<<i*j<<"\n "[j<i];}

C++, 106 bytes

I used two loops and a few tricks.

#import <iostream>
main(){for(int i=0,j;i++-9;j=0)while(j++-i)std::cout<<j<<'x'<<i<<'='<<i*j<<"\n "[j<i];}
Source Link
FoxyZ
  • 71
  • 1
  • 2

C++, 106 characters

I used two loops and a few tricks.

#import <iostream>
main(){for(int i=0,j;i++-9;j=0)while(j++-i)std::cout<<j<<'x'<<i<<'='<<i*j<<"\n "[j<i];}