Skip to content

Instantly share code, notes, and snippets.

View sahil-patel6's full-sized avatar
💭
I may be slow to respond.

Sahil Patel sahil-patel6

💭
I may be slow to respond.
View GitHub Profile
@sahil-patel6
sahil-patel6 / tic_tac_toe.c
Created August 8, 2018 13:24
Tic Tac Toe Game
#include <stdio.h>
void displayBoard(char a[], char b[], char c[]);
int checkWinner(char a[],char b[],char c[]);
int main() {
int position,isThePlayer1 = 0, numOfIterations = 1;
@sahil-patel6
sahil-patel6 / octal_to_hex.c
Last active July 23, 2018 13:59
Octal To HexaDecimal Converter With Decimal Point
#include <stdio.h>
void printingResult(char temp[]);
int main(int argc, char const *argv[]) {
char octalNumber[512];
printf("Enter a octal Number to convert it into binary(if you are adding an integer then add '.o' at the end. for ex: 123.0)\n");
@sahil-patel6
sahil-patel6 / binary_to_octal.c
Last active July 18, 2018 12:40
binary to octal number system converter with decimal point
#include <stdio.h>
void printingResult(char temp[]);
int main(int argc, char const *argv[]) {
char binaryNumber[512];
char binaryNumberInWhole[512];
@sahil-patel6
sahil-patel6 / octal_to_binary.c
Last active July 18, 2018 12:41
Octal to Binary number system converter with decimal point
#include <stdio.h>
int main(int argc, char const *argv[]) {
char octalNumber[512];
printf("Enter a octal Number to convert it into binary\n");
scanf("%s",octalNumber);
@sahil-patel6
sahil-patel6 / binary_to_decimal.c
Last active July 18, 2018 12:41
Convert binary number system to decimal number system with decimal point
#include<stdio.h>
#include<math.h>
float powerInDecimal(int num, int i);
int main(int argc, char const *argv[]) {
char binaryNumber[512];
char decimalNumberInWholeNumber[512];
@sahil-patel6
sahil-patel6 / decimal_to_binary.c
Last active July 18, 2018 12:42
Decimal Number System to Binary Number System Converter with decimal point
#include<stdio.h>
#include<math.h>
int main(int argc, char const *argv[]) {
float decimalNumber;
int binaryNumberInWholeNumber[512];
int binaryNumberInDecimal[512];
@sahil-patel6
sahil-patel6 / passwordGenerator.py
Created January 1, 2018 09:36
Password Generator Using Python
import random
def main():
print("Welcome to the Password Generator 2018\n")
print("You can generate any kind of password you would like to...\n")
print("Choose one of type below , you can choose both or triple too\n")
@sahil-patel6
sahil-patel6 / typingMaster.c
Created December 31, 2017 09:07
Typing Master Using C Language
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
void writeInScoreDatabase(char userName[], char points[]);
void writeInFile();
void readFromScoreDatabase();
@sahil-patel6
sahil-patel6 / passwordGenerator.c
Last active August 26, 2022 04:20
Password Generator Using C Language
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
char passwordType[1];
int generateRandomNumbers();
char password[512];