Skip to content
Snippets Groups Projects
Select Git revision
  • bc9e6348c32e85f155b3c1c969b48af6d4ac2de5
  • main default protected
  • update_2024
  • fix_formatting
4 results

main.rs

Blame
  • Forked from orestis.malaspin / rust-101
    Source project has a limited visibility.
    e5.c 307 B
    #include <stdio.h>
    
    
    void reverse(const int rem);
    
    
    void reverse(const int rem) {
    	if (rem <= 0) {
    		printf("\n");  // copie exemple enonce
    		return;
    	}
    	float num;
    	scanf("%f", &num);
    	reverse(rem - 1);
    	printf("%.2f\n", num);
    }
    
    
    int main(int argc, char **argv) {
    	reverse(6);
    	printf("\n");
    	return 0;
    }