I want to add float average variable inside the cout. What's the perfect way for it?
int first , second , third;
cout<<"enter the first number: ";
cin>>first;
cout<<"enter the second number: ";
cin>>second;
cout<<"enter the third number: ";
cin>>third;
cout<<float average=(first+second+third)/3;