Skip to content

Instantly share code, notes, and snippets.

@Iamhere345
Iamhere345 / altCalc.cpp
Created April 27, 2022 22:52
Alititude Calculator
#include <stdlib.h>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char** argv) {
if (argc != 3) { cout << "error: did not input exactly 2 args\n"; return 1; }
float angle_of_elevation = stof(argv[1]);