🔒 Closed Pa solve naman po to guys walang binigay na example un teacher pls pa solve po.

Status
Not open for further replies.

Zombie278

Journeyman
Screenshot_2021-09-20-15-24-59-74_40deb401b9ffe8e1df2f1cc5ba480b12.webp
Screenshot_2021-09-20-15-25-11-22_40deb401b9ffe8e1df2f1cc5ba480b12.webp
 
public class MultiplyTwoNumbers {

public static void main(String[] args) {

float first = 1.5f;
float second = 2.0f;

float product = first * second;

System.out.println("The product is: " + product);
}
}



Ganyan ata 😂 napulot ko lang
 
Simple na yan tutoy effort ka naman, anyway ito sa C# ikaw na bahala gawin mo sa Java. ganito lang idea niya


int num1, num2,;

Console.Write("Input the first number: ");
num1 = Convert.ToInt32(Console.ReadLine());

Console.Write("Input the second number: ");
num2 = Convert.ToInt32(Console.ReadLine());



int result = num1 * num2 ;
Console.WriteLine("Output: {0} x {1} = {2}",
num1, num2, result);
 
Lods mag multiply ka lng sa Number 1 tapos ikaw na din bahala mag initialize ng value na usto mo. Tapos yung sa number 2 lods print print lng yan. Initialize ka ng String at Integer then display mo accroding dun sa kailangan na output sa problem. Need mo aralin mag program on your own kasi in the end ikaw kawawa. Hope it helps.😊
 
Status
Not open for further replies.

About this Thread

  • 8
    Replies
  • 448
    Views
  • 8
    Participants
Last reply from:
PHC - GLORIOUS

Online now

Members online
895
Guests online
689
Total visitors
1,584

Forum statistics

Threads
2,276,945
Posts
28,973,258
Members
1,229,658
Latest member
hihiwae
Back
Top