//Write a program that reads three numbers, the display //a)The largest //b)The smallest //(a)C++ program#include<iostream.h>void main(){float x,y,z;cout<<"enter x,y,z";cin>>x>>y>>z;if(x>y){if(x>z)cout<<"largest is"<<x;}else{cout<<"largest is"<<z;}}(a)alternative method or way for largest number #include<iostream.h>void main(){float x,y,z,max;cout<<"enter x,y,z";
1
Leave a Comment
nice 1 homework will be easier now