This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
mainLayout(), | |
); | |
} | |
Widget mainLayout() { | |
return MaterialApp( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:math"; | |
void main() { | |
quadraticEquation(11, -120, -11); // Должен вывести x1=11, x2=-0.09 | |
quadraticEquation(1, 6, 9); // Должен вывести: x=3 (правильный ответ: x=-3) | |
quadraticEquation(1, 1, 1); // Должен вывести: нет корней | |
} | |
void quadraticEquation(a, b, c) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var borsh = Recipe(); | |
borsh.add(Component("Капуста", 1)); | |
borsh.add(Component("Картошка", 7)); | |
borsh.add(Component("Свекла", 2)); | |
borsh.add(Component("Морковка", 3)); | |
borsh.add(Component("Лук", 1)); | |
borsh.printComponents(); | |
} |