Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdbool.h>
int main(){
//Multiplication table
bool wantSee;
bool doesLike;
bool saidYes = false;
@VisitorC86
VisitorC86 / gist:f1ab50c2a685e40a67ae34b69c96641c
Created January 2, 2026 04:40
Getting A J#b at the Krusty Krab
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
void printIntro(char name[], int age);
bool isOldEnough(int age);
int main(){
//Krusty Krab!!!
@VisitorC86
VisitorC86 / gist:8b76a0badef8ec2ed5941263301a0a85
Last active January 2, 2026 04:10
Square and Cube Calculator
#include <stdio.h>
#include <math.h>
float cb(float num);
float sq(float num);
int main(){
float x;
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
void hb(char name[50], float age){
printf("\nHappy Birthday to you!");
printf("\nHappy Birthday to you!");
printf("\nHappy Birthday dear %s!", name);
printf("\nHappy Birthday to you!");
printf("\nYou are now %.0f years old!\n", age);
#include <stdio.h>
int main(){
//Simple two value calculator that outputs in 6 decimals
float x;
float y;
float z;
char oper = '\0';
#include <stdio.h>
#include <ctype.h>
int main(){
char choice = '\0';
float F = 0.0f;
float C = 0.0f;
printf("Temp Converter (F and C)\n");
@VisitorC86
VisitorC86 / gist:272bdd3a71c4e16efba51c25bd111387
Created December 31, 2025 15:02
Kg to Oz or Oz to Kg converter
#include <stdio.h>
int main(){
int choice = 0;
float oz = 0.0f;
float kg = 0.0f;
printf("Kg to Oz (Vice-versa)\n");
printf("Option 1. Kg to Oz\n");
@VisitorC86
VisitorC86 / gist:8975c88d6367be5b09b48d66b7dc54ee
Last active December 31, 2025 15:18
Legal to Drink or not code
#include <stdio.h>
#include <stdbool.h>
int main(){
int age = 0;
int beerinput = 0;
bool beer;
printf("How old are you? \n");
@VisitorC86
VisitorC86 / gist:63c5f927369d15bc369f306753b66c46
Created December 31, 2025 14:05
De Interest Compound Kalculator ( DICK )
#include <stdio.h>
#include <math.h>
int main(){
double p = 0.0;
double r = 0.0;
int yrs = 0;
int tc = 0;
double rtn = 0.0;
@VisitorC86
VisitorC86 / gist:de119037cbd42115e07470078f6477bb
Last active December 31, 2025 11:31
Area, Surface Area, and Volume Calculator
#include <stdio.h>
#include <math.h>
int main()
{
double rad = 0.0;
double a = 0.0;
double surfa = 0.0;
double v = 0.0;