Multiply Three Numbers
Kick Start
Multiply Three Numbers
Problem Statement
Accept three numbers and print their product.
Example Input/Output 1
Input
2 5 10
Output
100
Example Input/Output 2
Input
6 3 7
Output
126
Note: Max Execution Time Limit: 4000 millisecs
Solution
Programming Language: C Language
#include<stdio.h> #include <stdlib.h> int main(){ int X, Y, Z; scanf("%d %d %d", &X, &Y, &Z); printf("%d", X*Y*Z); }
//Published By PKJCODERSProgramming Language: C++ Language
#include <iostream> using namespace std; int main(){ int X, Y, Z; cin >> X >> Y >> Z; cout << X*Y*Z; }
//Published By PKJCODERSProgramming Language: Java Language
import java.util.*; public class Hello { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); System.out.print(X * Y * Z); } }
//Published By PKJCODERSProgramming Language: Python 3 Language
X, Y, Z = map(int, input().split()) print(X*Y*Z)
#Published By PKJCODERS (Note: Incase If the code doesn't Pass the output kindly comment us with your feedback to help us improvise.)
Comments