Advertisement
Guest User

isaac_vs

a guest
May 18th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. ############################################
  3. #**********script Coded By isaac_dz*******#
  4. # -----------------------------------------#
  5. #============ calculer votre moyene========#
  6. #
  7. #***** a Gift 4 all DZ student **********#
  8. ############################################
  9.  
  10.  
  11. use strict ;
  12. use warnings ;
  13.  
  14.  
  15.  
  16. print "\t\t/////////////////////////////////////////////////\n";
  17. print "\t\t_________________________________________________\n";
  18. print "\t\t\t Scientifique Stream :D \n";
  19. print "\t\t\t Coded By IsaaC Vs _DZ!\n";
  20. print "\t\t\t calculez votre moyene
  21. \n";
  22. print "\t\t\t my small script \n";
  23. print "\t\t\t special great to all my friends \n";
  24. print "\t\t_________________________________________________\n";
  25. print "\n\n";
  26. sleep (1);
  27.  
  28. print "\t\t\t votre moyenne de science .? :";
  29. my $science = <>;
  30. chomp $science;# fi 6
  31. print "\n";
  32. print "\t\t\t votre moyenne de math ....? :";
  33. my $math = <>;
  34. chomp $math; #fi 5
  35. print "\n";
  36.  
  37. print "\t\t\t votre moyenne de physique ? :";
  38.  
  39. my $physique = <>;
  40. chomp $physique;
  41.  
  42. my $a = $science * 6;
  43. my $b = $physique * 5 ;
  44. my $c = $math * 5 ;
  45.  
  46. my $d = $a + $b + $c ;
  47. my $e = $d / 16 ;
  48.  
  49. print "\n\n\n";
  50. print "\t\t votre moyenne de matiere scientifique est : $e ";
  51. print "\n\n\n";
  52.  
  53.  
  54. if ($e >= 10)
  55. {
  56.  
  57. print "\n\t\t votre moyenne est superieur de 10 :) happy for you ";
  58.  
  59. }
  60.  
  61. else {
  62.  
  63. print "\t\t nn c pas comme ça essayez de faire les effort .. :(";
  64. }
  65.  
  66.  
  67. print "\n\n\n\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement