I. z = [a2 + 4ac] ÷ 2
#include<iostream>
#include<math.h>
using namespace std;
int main(){
int A, C;
float Z;
cout << "Enter the A (z=(a^2+4ac)/2): ";
cin >> A;
cout << "Enter the C (z=(a^2+4ac)/2): ";
cin >> C;
Z=(pow(A,2) + 4*A*C)/2;
cout << "\nWe find Z\n" << "Z = " << Z;
}
Comments
Leave a comment