Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main (){
- cout<<"Wassil Janssen 10/8\n";
- double max = 0;
- double input=1;
- while (input != 0){
- cout<<"Please enter a number: ";
- cin>>input;
- if (input > max)
- max = input;
- }
- cout<<"The max is "<<max<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement