Skip to content

Instantly share code, notes, and snippets.

@VictorieeMan
Created October 30, 2024 22:01
Show Gist options
  • Save VictorieeMan/f1b7e57480de86b19ce6f20a2d369983 to your computer and use it in GitHub Desktop.
Save VictorieeMan/f1b7e57480de86b19ce6f20a2d369983 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{amsmath}
\usepackage{array}
\begin{document}
\begin{table}[h!]
\centering
\renewcommand{\arraystretch}{1.5} % Increase row height
\begin{tabular}{|c|c|c|}
\hline
\textbf{Shape} & \textbf{Volume} & \textbf{Surface Area} \\
\hline
Cone & $V = \frac{1}{3} \pi r^2 h$ & $A = \pi r \sqrt{r^2+h^2} + \pi r^2$ \\
\hline
Sphere & $V = \frac{4}{3} \pi r^3$ & $A = 4 \pi r^2$ \\
\hline
Cylinder & $V = \pi r^2 h$ & $A = 2 \pi r h+2\pi r^2$ \\
\hline
\end{tabular}
\caption{Volume and Surface Area of Cone, Sphere, and Cylinder}
\label{tab:volume_surface_area}
\end{table}
\end{document}
% MIT License
% Copyright (c) 2024 VictorieeMan
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
% The above copyright notice and this permission notice shall be included in all
% copies or substantial portions of the Software.
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
% SOFTWARE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment