Write a simple Python code that takes in 3 integer inputs from the user, calculates the average and print the average.
def main(): num1 = int(input ("Enter an integer:")) num2 = int(inpit("Enter an integer:")) num3 = int(input("Enter an integer:")) avg = (num1 + num2 + num3) / (3)) print("The average of the three floats is:", avg) main()
Write a simple C++ code that takes in input from the 2 numbers from the user and outputs the sum of those two numbers?
#include <iostream> using namespace std; int main() { int num1; int num2; cout << "What is the first number?" << endl; cin >> num1; cout << "What is the second number?" << endl; cin >> num2; cout << num1 + num2 << endl; return 0; }
(4x^2)+ 12x+5
There are multiple way to solve factoring problems including the quadratic formula and the simpler box method. Using the box method I determined that the factor of (4x^2) + 12x + 5 = (2x+5)(2x+1)