fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=1, b;
  5. while(a!=10){
  6. b=a*a;
  7. printf("%d×%d = %d\n", a, a, b);
  8. a++;
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
1×1 = 1
2×2 = 4
3×3 = 9
4×4 = 16
5×5 = 25
6×6 = 36
7×7 = 49
8×8 = 64
9×9 = 81