Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

AsignmetNo# 02

QNO#1

2
#
#No# 02

3
#

# ! the code of above program QNO#3!


#include<iostream>
using namespace std;
int main(){
float Z,R,A,X;
int a=1,b=2,c=3,d=4,g=5,v=6,x=7,y=8;
Z = ((x + 3) * x * x * x) / ((y - 4) * (y + 5));
R = (2 * v) + (6.22 * (c + d)) / (g + v);
A=(7.7*b)*(x*y+a)/c-0.8+(2*b)/(x+a)*(1/y);
X = (12 * (x * x * x)) / (4 * x) + (8 * (x * x)) / (4 * x) + (x / (8 * x)) + (8 / (8 * x));
cout<<"Z= "<<Z<<endl;
cout<<"R= "<<R<<endl;
cout<<"A= "<<A<<endl;
cout<<"X= "<<x<<endl;
if(Z>R && Z>A && Z>X){
cout <<"Z is Biggest Number";
}
else if (R>A && R>X && R>Z){
cout <<"X is Biggest Number";
}
else if (A>X && A>Z && A>R){
cout<<"A is Biggest Number";
}
else if(X>Z && X>R && X>A){
cout<<"Z is Biggest Number";
}
else{
cout<<"Error";
}
#No# 02
}
#No# 02

4
#

5
#

6
#

You might also like