Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  asd
Language: C/C++
Code:
program Ordem crescente
     real a,b,c
     write(*,*) "Escreva 3 numeros reais"
     read(*,*) a,b,c
     if (a.ge.b.and.a.ge.c) then
     write(*,*) a, ">", b, ">", c 
      end if
     if (a.ge.b.and.a.le.c) then
     write(*,*) c, ">", a, ">", b
     end if
     if (a.le.b.and.a.ge.c) then
     write(*,*) b, ">", c, ">", a
     end if
     if (a.ge.c.and.c.ge.b) then
     write(*,*) a, ">", c, ">", b
     end if
      if (c.ge.b.and.b.ge.a) then
     write(*,*) c, ">", b, ">", a
     end if
     if (b.ge.c.and.c.ge.a) then
     write(*,*) b, ">", c, ">", a
     end if
     end program
     

          
Comments: