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:
Input a string: The quick brown fox jumps over the lazy dog. TThe quick brown fox jumps over the lazy dog.T Code: import 'dart:io' ; void main () { stdout. write ( 'Input string : ' ); String word = stdin. readLineSync (); String result; result = word[ 0 ] + word + word[ 0 ]; print (result); } Output:
Comments
Post a Comment