Skip to content

Instantly share code, notes, and snippets.

View ugraphix's full-sized avatar

Gracie ugraphix

View GitHub Profile
@ugraphix
ugraphix / temp.php
Last active April 8, 2024 08:03
Temperature conversions (Fahrenheit, Celsius, Kelvin) using PHP
<?php
//temp.php
//Celsius to Fahrenheit ° F = 9/5 ( ° C) + 32
//Fahrenheit to Celsius ° C = 5/9 (° F - 32)
//Celsius to Kelvin K = ° C + 273.15
//Kelvin to Celsius ° C = K - 273.15
//Fahrenheit to Kelvin K = 5/9 (° F - 32) + 273.15
//Kelvin to Fahrenheit ° F = 9/5 (K - 273.15) + 32
@ugraphix
ugraphix / arrays1
Created January 13, 2017 04:02
Playing with arrays using c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
string[,] product = new string[5, 2]; //two dimensional array with 5 rows, 2 collumns