This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static int ft_blockbuster(int expense) | |
| { | |
| float recettes = 31000000; | |
| float benef = 0; | |
| int weeks = 0; | |
| while(benef < expense) | |
| { | |
| benef += recettes; | |
| recettes = recettes * 0.80f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static int[] ft_order_int_tab(int [] tab) | |
| { | |
| int stock = 0; | |
| for (int a = 0; a < tab.Length; a++) | |
| { | |
| for (int b = a + 1; b < tab.Length; a++) | |
| { | |
| if (tab[b] < tab[a]) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static int[] ft_rev_square_int_tab(int[] tab) | |
| { | |
| int stock = 0; | |
| for (int a = 0; a < tab.Length; a++) | |
| { | |
| for (int b = a + 1; b < tab.Length; b++) | |
| { | |
| if (tab[b] > tab[a]) | |
| { |
OlderNewer