In this post, we will demonstrate how it is possible to generate the code for the bubble algorithm in C# through an AI.
Today we will use the "PlayGround" of the beta version of openai. This tool allows us to give instructions to the AI, that is, inputs in human language format and receive as output automatically generated code, which we can copy and paste into our favorite code editor and execute it.
Normally, if the codes are "simple", they usually do not fail. However, we will also see in future posts how to solve the problems that may arise when creating code with this AI.
Image generated by AI about "bubble".