السلام عليكم المفروض البرنامج يطبع 9.9 القيمة الاكبر بين اربع قيم الا انه لايعمل فما هو الحل وشكرا
#include<iostream.h>
float larg( float x,float y,float z,float c)
{
if (x >y || x>z ||x>c) return x;
if ( y >x || y>z ||y>c) return y;
if ( z >x || z>y ||z>c) return z;
else
return c;
}
int main(){
float a,b,d,f;
cout<<"enter the no:"<<endl;
cin>>a>>b>>d>>f;
float v;
v=larg(7.0,8.8,9.19,0.0);
cout<<v<<endl;
return 0;
}