Skip to content

Geoffery88/largest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

largest

//Largest of three numbers #include using namespace std;

int main() {
float n1, n2, n3;

cout << "Enter three numbers: ";
cin >> n1 >> n2 >> n3;

if(n1 >= n2 && n1 >= n3)
    cout << "Largest number: " << n1;

if(n2 >= n1 && n2 >= n3)
    cout << "Largest number: " << n2;

if(n3 >= n1 && n3 >= n2)
    cout << "Largest number: " << n3;

return 0;

}

About

Largest of three numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published