Advertisement
pologeeko

Convertisseur io en octets

Jun 15th, 2013
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Define convertisseur()=
  2. Prgm
  3. Local nbre,prefixe,a,convert
  4. Request "Le nombre à convertir",nbre
  5. RequestStr "Le prefixe est : ",prefixe
  6. If prefixe="kilo" Then
  7. a:=10^(3)
  8. abrev:="k"
  9. ElseIf prefixe="mega" Then
  10. a:=10^(6)
  11. abrev:="M"
  12. ElseIf prefixe="giga" Then
  13. a:=10^(9)
  14. abrev:="G"
  15. ElseIf prefixe="tera" Then
  16. a=10^(12)
  17. abrev:="T"
  18. Else
  19. Stop
  20. EndIf
  21. RequestStr "Convertir de "&abrev&" io ou de "&abrev&" o en octets", convert
  22.  
  23.  
  24. EndPrgm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement