using System; namespace GramsToKilograms { class Program { static void Main(string[] args) { Console.Write("Enter the weight of the package in grams: "); double weightInGrams = Convert.ToDouble(Console.ReadLine()); double weightInKilograms = weightInGrams / 1000; int packagesPerKilogram = (int)(1 / weightInKilograms); Console.WriteLine($"The weight of the package is {weightInKilograms:F1} kilograms."); Console.WriteLine($"It takes {packagesPerKilogram} such packages to form one kilogram."); } } }