Skip to content

Instantly share code, notes, and snippets.

View iahmadgad's full-sized avatar
🔻
Stands with Ghaza

Ahmad Asaad iahmadgad

🔻
Stands with Ghaza
View GitHub Profile
@iahmadgad
iahmadgad / DivisorsPrinter.cpp
Last active November 24, 2023 11:12
C++ divisors printer
#include <iostream>
#include <string>
using namespace std;
void printDivisors(long l);
int main()
{
long n;
@iahmadgad
iahmadgad / PrimeNumberChecker.cpp
Created November 21, 2023 18:36
C++ prime number checker
using namespace std;
int main()
{
long x;
cin >> x;
if(isPrime(x)) cout << "PRIME" << endl;
else cout << "NOT PRIME" << endl;
}
@iahmadgad
iahmadgad / TicTacToe.java
Last active May 16, 2024 13:58
Java Tic Tac Toe
import java.util.Scanner;
/**
* Tic Tac Toe
* @author Ahmad Asaad
*
*/
public class TicTacToe
{
@iahmadgad
iahmadgad / RockPaperScissors.java
Created November 21, 2023 18:10
Java rock paper scissors game
import java.util.Scanner;
/**
* Rock Paper Scissors
* @author iAhmadGad
*
*/
public class RockPaperScissors
{
@iahmadgad
iahmadgad / Quizzer.java
Created November 21, 2023 18:08
Java quizzer
import java.util.Scanner;
/**
* Simple Quiz
* @author iAhmadGad
*
*/
public class Quizzer
{
@iahmadgad
iahmadgad / GuessNumber.java
Created November 21, 2023 18:06
Java guess number game
import java.util.Scanner;
/**
* Guess Number
* @author iAhmadGad
*
*/
public class GuessNumber
{
@iahmadgad
iahmadgad / OptionsRandomiser.java
Last active November 21, 2023 18:12
Java options randomiser
import java.util.Scanner;
/**
* Options Randomiser
* @author iAhmadGad
*
*/
public class OptionsRandomiser
{