To find largest of 5 numbers with seperated space

please send me the code to help it i am not able to put up spaces and output is also coming wrong

Hi Akshat,
I don’t understand what difficulty are u facing… its just a simple ques where u are given 5 numbers and u have to find largest among them…
refer this --> https://ide.codingblocks.com/s/618160

Hi… do u still have any doubt in this ques???

no i am not facing any issue in this. Thanks for the code…i did at the time of lecture but i just forgot here

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

https://ide.codingblocks.com/s/618745 this is the piece of code here in have just made a chnage in bracket and my both output are coming different can you please tell me why this is happening?

int s = ab/c-d;
here is is being done is only c divides b…
but here int q = a
b/(c-d); due to bracket (c-d) divides b… this is the difference

#include
using namespace std;

int main () {
int a, b, c, d, e;
cin>>a>>b>>c>>d>>e;
int max=a;
if(b>max)
max = b;
if(c>max)
max = c;
if(d>max)
max = d;
if(e>max)
max = e;
cout<<max;
return 0;
}