Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue report #9

Open
Seraph919 opened this issue Jul 5, 2024 · 0 comments
Open

Issue report #9

Seraph919 opened this issue Jul 5, 2024 · 0 comments

Comments

@Seraph919
Copy link

so i was trying to check C00 ex06 using mini C00, the code in ex06 was giving the correct input of the exercice in other compilers. however, the moulinette says that it was expecting something else..

the code is :

#include <unistd.h>

void fputchar(char c);

void ft_print_comb2(void) {
  int a = 0;
  int b;

  while (a <= 98) 
  {

    b = a +1;
    while (b <= 99) 
    {
    
      fputchar((a /10)+ '0');
      fputchar((a % 10)+ '0');
      fputchar(' ');
      fputchar((b / 10)+ '0');
      fputchar((b % 10)+ '0');
      
      if (a != 98) 
      {
        write(1, ", ", 2);
      }
    b++; 
    }
    a++;
  }
  }


void fputchar(char c)
{
   write(1, &c, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant