Skip to main content

Featured

Tic Tac Toe

Tic Tac Toe Tic Tac Toe is a simple, two-player strategy game played on a 3x3 grid. Players take turns marking a square with either an "X" or an "O", with the goal of being the first to align three of their marks in a row, column, or diagonal.  I have made a simple Tic Tac Toe game using html, css, javascript.  The game doesnot have much features. The game is created to be played by two peoples. It is just a simple game. The code of this game you get in my github page   Link of this game code is below: Tic Tac Toe Game Code /

Finding number is prime or composite using python

Hello Friend this program is made to find whether the number is prime number or composite number


Here's the code:

a = int(input("Enter the number: "))

if a > 1:

    for i in range(2, a):

        if a%i == 0:

            print("Composite number")

        else:

            print("Prime number")

else:

    print("Prime number") 

Comments

Popular Posts