Convert g to kg
using System;
class MainClass {
public static void Main (string[] args) {
Console.WriteLine ("Please enter grams:");
double grams = Convert.ToDouble(Console.ReadLine());
double kilograms = grams / 1000;
Console.WriteLine(kilograms + " Kilograms");
}
}