Skip to content

This program takes in four integers and then uses functions and for loops to calculate all 64 combinations of all permutations, but returns the first solution found or no solution if there is none.

Notifications You must be signed in to change notification settings

peterwzhang/24-Game-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

24 Game Solver

This program takes in four integers and then uses functions and for loops to calculate all 64 combinations of all permutations, but returns the first solution found or no solution if there is none.

Usage

  1. Compile the program using: gcc -Wall -std=c99 24.c permute.c.
  2. Run your executable.
  3. Answer the prompts in the command line to see if the four integers and make 24.

About

This program takes in four integers and then uses functions and for loops to calculate all 64 combinations of all permutations, but returns the first solution found or no solution if there is none.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages