Sample Output: Input first integer: -5 Input second integer: 25 Check if one is negative and one is positive: True Code: import 'dart:io' ; void main () { stdout. write ( 'Input first Number : ' ); int num1 = int . parse (stdin. readLineSync ()); stdout. write ( 'Input Second Number : ' ); int num2 = int . parse (stdin. readLineSync ()); if (num1 != 0 && num2 != 0 ) { print ( true ); } } Output:
Code: import 'dart:io' ; void main () { print ( 'Input first Number : ' ); int a = int . parse (stdin. readLineSync ()); print ( 'Input Second Number : ' ); int b = int . parse (stdin. readLineSync ()); print ( 'Input Third Number : ' ); int c = int . parse (stdin. readLineSync ()); int result = a * b * c; print ( 'Multiplication of three numbers : $ result ' ); } Output:
Comments
Post a Comment