Advertisement
joaopaulofcc

Untitled

Jul 28th, 2020
2,726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.30 KB | None | 0 0
  1. import 'dart:io';
  2.  
  3. void main()
  4. {
  5.     stdout.write("1º Número:");
  6.     int n1 = int.parse(stdin.readLineSync());
  7.  
  8.     stdout.write("2º Número:");
  9.     int n2 = int.parse(stdin.readLineSync());
  10.    
  11.     stdout.write("\n");
  12.    
  13.     int sum = n1 + n2;
  14.     print("$n1 + $n2 = $sum");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement