Skip to content
Snippets Groups Projects
Commit 0bc5ec3b authored by Sayyidi Zubairu's avatar Sayyidi Zubairu
Browse files

I made some changes to the file structure

parents
No related branches found
No related tags found
1 merge request!1I made some changes to the file structure
*.out
.DS_Store
cmake-build-debug
.idea
\ No newline at end of file
cmake_minimum_required(VERSION 3.30)
project(helloworld)
set(CMAKE_CXX_STANDARD 20)
add_executable(helloworld main.cpp)
main.cpp 0 → 100644
#include <iostream>
#include <cmath>
int main() {
int a, b;
std::cout << "Enter the lengths of the two sides of the right triangle:" << std::endl;
std::cout << "Side a: ";
std::cin >> a;
std::cout << "Side b: ";
std::cin >> b;
double hypotenuse = sqrt(a * a + b * b);
std::cout << "The length of the hypotenuse is: " << hypotenuse << std::endl;
return 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment