This file contains hidden or 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(MaterialApp(home: MyWidget())); | |
} | |
class MyWidget extends StatefulWidget { | |
const MyWidget({super.key}); | |
@override |
This file contains hidden or 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
Задача 1 | |
void main() { | |
int num = 16; | |
//int num = 8; | |
//int num = 11; | |
//int num = 172; | |
if (num % 2 == 0) { | |
print('$num - чётное число'); | |
} else { |