Write a dart program to print the output of multiplication of three numbers which will be entered by the user

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

Popular posts from this blog

Write a Dart program to convert from celsius degrees to Kelvin and Fahrenheit.

Write a Dart program to check two given integers and return true if one is negative and one is positive

Write a Dart program to compute the sum of two given integers, if two values are equal then return the triple of their sum