6 kyu

[BF] operators: max

Description:

Task

Write a BF program which returns the maximum number of the the given positive numbers.

The program should work for arbitrary many inputs. If no number is given, return \0.

Input

  • arbitrary many (zero or more) positive numbers [1 - 255] as ansi codes
  • input will be terminated by a \0

Output

  • the maximum of all given numbers as ansi code
  • if only one number is given, return that number
  • if no number is given, return \0

More operators

Check out the [BF] operators collection.

Algorithms

Similar Kata:

More By Author:

Check out these other kata created by Madjosz

Stats:

CreatedMar 4, 2022
PublishedAug 3, 2023
Warriors Trained40
Total Skips2
Total Code Submissions22
Total Times Completed11
BF Completions11
Total Stars2
% of votes with a positive feedback rating100% of 8
Total "Very Satisfied" Votes8
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Total Rank Assessments5
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • Madjosz Avatar
  • B1ts Avatar
Ad