Advertisement
SteamFi

[BROKEN] List Display Lab

Jan 22nd, 2021
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. main () {
  2.  
  3.  
  4.  
  5.  
  6. int x=0, x2=0, 3x=0, numbers=[x], square=[x2]
  7.  
  8. float root=[3x]
  9.  
  10.  
  11.  
  12.  
  13. printf("Number\tRoot\tSquare\n);
  14.  
  15.  
  16.  
  17.  
  18. do {
  19.  
  20. x++;
  21.  
  22. 2x=x*x;
  23.  
  24. 3x=sqrt(x);
  25.  
  26.  
  27.  
  28.  
  29. printf(%i\t%f\t%i\n", numbers, root, square);
  30.  
  31. } while (x=<10);
  32.  
  33.  
  34.  
  35.  
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement