Advertisement
Derga

Untitled

May 21st, 2023
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. double num1 = 3.12345678;
  2.   std::cout << std::fixed << std::showpoint;
  3.   std::cout << std::setprecision(8);
  4.   std::cout << num1 << std::endl;
  5.  
  6.  
  7.     for (int i = 1; i < 10; ++i) {
  8.         for (int j = 1; j < 10; ++j) {
  9.             std::cout << std::setw(3) << i * j << ' ';
  10.         }
  11.         std::cout << '\n';
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement