Computer Science, asked by riya1342, 1 year ago

write a program to assign two numbers and print their product . plz i urgently want this.


hardy0077: maaf kijiye glti ho gyi aapse baat kr ke
riya1342: kyu
hardy0077: aap mein bhut attitude hai
riya1342: acha
riya1342: okk fine jaisa aap samjho
hardy0077: thnx my darling
hardy0077: my love
riya1342: just shut up
riya1342: n mind ur language
riya1342: n i m not ur love understood

Answers

Answered by Anonymous
0

import java.util.Scanner;

public class Demo {

public static void main(String[] args) {

/* This reads the input provided by user

* using keyboard

*/

Scanner scan = new Scanner(System.in);

System.out.print("Enter first number: ");

// This method reads the number provided using keyboard

int num1 = scan.nextInt();

System.out.print("Enter second number: ");

int num2 = scan.nextInt();

// Closing Scanner after the use

scan.close();

// Calculating product of two numbers

int product = num1*num2;

// Displaying the multiplication result

System.out.println("Output: "+product);

}

}


riya1342: java
SUJALBATRA2003: hm
Answered by Anonymous
1

class number

{

public satic void main ( String args[])

{

int a =12

b = 15

product =a×b

system.out.println(" product")

}

}


riya1342: most wlcm dear
Anonymous: how r u dear
Anonymous: Im fine
riya1342: i m also fine
Anonymous: from whre u r
Anonymous: dear
riya1342: what r u doing
riya1342: i m frm dehradun n u
Anonymous: me from Lucknow
riya1342: ooo
Similar questions