c++ program to find area of a triangle
Cpp Program to find the Area of a triangle This post shows you the way to code a program in cpp that can calulate the area of a triangle. There are two different cases to calculate area of triangle. First…
Cpp Program to find the Area of a triangle This post shows you the way to code a program in cpp that can calulate the area of a triangle. There are two different cases to calculate area of triangle. First…
This post shows you how to code a basic program in cpp that can calculate the dot and cross product of two vectors. Cpp program to find the Dot and Cross product of two vectors Assume that there are two…
Program to find the steps in order to attack enemies Game development requires a lot of mathematics, physics, and algorithms, so to practice with CPP in a fun way it can be helpful that you solve problems related to the…
Program to implement a 3D vector and a 3X3 matrix struct in c/c++ 3d Vector Structure the following structure describes a vector it has two constructor definition one Is default and the second one takes 3 floating-point values to assign…
What is the Fibonacci series and how to program it in C++? Fibonacci sequence By definition, the first two elements of the Fibonacci sequence are 0 and 1 and each next element is the sum of the previous two elements.…
to find factorial of a number The calculation of factorial in programming is also an example of recursion. But the recursion isn’t memory efficient if you don’t care about this, It is a choice to save time. The factorial of…
Get the last element from an Array, c++ code #include < iostream > #include < vector > int main() { /** * first find the size of an array using sizeof() * * size of an array, s = sizeof(array)…