Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <stdio.h>
- using namespace std;
- int main(){
- float mayor1, menor1, n1, n2, n3, n4, nota1;
- cout<<" ingrese las cuatro notas"<<endl;
- cin>>n1>>n2>>n3>>n4;
- if(n1<n2 && n1<n3 && n1<n4){
- menor1 = n1;
- }else if(n2<n1 && n2<n3 && n2<n4){
- menor1= n2;
- }else if(n3<n1 && n3<n2 && n3<n4){
- menor1= n3;
- }else{
- menor1= n4;
- }
- cout << "El menor es: "<<menor1<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement