Created
October 2, 2023 06:57
-
-
Save 4RSIM3R/e27cf3d51d3dbbd718858e25e25d5737 to your computer and use it in GitHub Desktop.
mahasiswa_berpestasi.dart
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() { | |
// Tugas 1 | |
print("Hello world"); | |
// Tugas 2 | |
String name = 'joko anton jodo'; | |
print(name); | |
// Tugas 3 | |
String firstName = 'joko'; | |
final lastName = 'anton jodi'; | |
print(firstName); | |
print(lastName); | |
// Tugas 4 | |
var array1 = [1, 2, 3]; | |
var array2 = [4, 5, 6]; | |
array1[0] = 100; | |
array2[0] = 100; | |
print(array1); | |
print(array2); | |
int number1 = 100; | |
double number2 = 100.5; | |
print(number1); | |
print(number2); | |
var text = 'ini \'OPTIMAL\' \$ sekali'; | |
print(text); | |
var kalimatPanjang = ''' | |
ini | |
saya | |
punya | |
proyek banyak | |
'''; | |
print(kalimatPanjang); | |
} |
Author
4RSIM3R
commented
Oct 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment