TGViewer
JDC DevLog 🕳 JDC DevLog 🕳 @jeusdev · 50 subscribers
Post #128 160
using System;
namespace ProteinCalculation {
class Program {
static void Main(string[] args) {
int crocodileWeightInKg = 7; // Вес мяса крокодила
int proteinWeightInGrams = 800; // Вес протеина
int crocodileWeightInGrams = crocodileWeightInKg * 1000;
try {
if (crocodileWeightInGrams <= 0)
throw new ArgumentException("Неверный вес крокодила. Задумайся над своим поведением.");
double proteinPer100Grams = (double)proteinWeightInGrams / crocodileWeightInGrams * 100; Console.WriteLine($"В 100 граммах мяса крокодила содержится {proteinPer100Grams} грамм протеина.");
}
catch (ArgumentException ex) {
Console.WriteLine(ex.Message);
}
catch (Exception ex) { Console.WriteLine($"непредвиденная ошибка: {ex.Message}");
}
}
}
}

Калькулятор протеина в крокодиле. Есть чем разозлить Шашки Онлайновича
#ОпенСоус
  • 🐳 6
  • 🔥 4
  • 😁 4
  • 👎 3
More from @jeusdev
  1. Jul 22, 2026video post
  2. May 12, 2026я дождался сабнатики 2 на 825 день
  3. May 9, 2026⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⣰⣆ ⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⣸⡇⠄⠄⠄⠄⠄⠄⠄⠄⣰⡿⢿⣆ ⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢰⡟⠄⠄⠄⠄⠄⠄⠄⠄⣠⡿⠁⠈⢿⣆ ⠄⠄⠄⠄⠄⠄⠄⠄⠄⢠⡟⠄…
  4. Apr 1, 2026У вас все списки белые
  5. Dec 31, 2025HNY
  6. Dec 22, 2025первый стикерпак заполнили
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →