RamiroAlegre

Untitled

Sep 16th, 2021
762
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <stdio.h>
  4. using namespace std;
  5. int main(){
  6. float mayor1, menor1, n1, n2, n3, n4, nota1;
  7. cout<<" ingrese las cuatro notas"<<endl;
  8. cin>>n1>>n2>>n3>>n4;
  9. if(n1<n2 && n1<n3 && n1<n4){
  10.     menor1 = n1;
  11. }else if(n2<n1 && n2<n3 && n2<n4){
  12.     menor1= n2;
  13. }else if(n3<n1 && n3<n2 && n3<n4){
  14.     menor1= n3;
  15. }else{
  16.     menor1= n4;
  17. }
  18.  
  19. cout << "El menor es:  "<<menor1<<endl;
  20.  
  21.  
  22. return 0;
  23. }
RAW Paste Data