Quantum Supercomputer
Elite
wait lang pare, hindi ako marunong mag code sa console, puro Windowsform gawa ko ahahbabasic na basic palang talaga alam ko ser pwede pa coding??
wait lang pare, hindi ako marunong mag code sa console, puro Windowsform gawa ko ahahbabasic na basic palang talaga alam ko ser pwede pa coding??
pa try nga ko nito?gawin daw ser na yung may System.out.print()
View attachment 658267
sige po salamat talaga ng maramiwait lang pare, hindi ako marunong mag code sa console, puro Windowsform gawa ko ahahba
pa try ako nitosige po salamat talaga ng marami
eto po labaspa try nga ko nito?
import java.util.Scanner;
class GetInputFromUser {
public static void main(String args[]) {
int a;
float b;
String s;
Scanner in = new Scanner(System.in);
System.out.println("Enter a string");
s = in.nextLine();
System.out.println("You entered string " + s);
System.out.println("Enter an integer");
a = in.nextInt();
System.out.println("You entered integer " + a);
System.out.println("Enter a float");
b = in.nextFloat();
System.out.println("You entered float " + b);
}
}
nag run ba yan bago ng error?eto po labas
eto next pa try, checkmate na yan pag gumana 'to ->nag run ba yan bago ng error?
Resource leak daw "in" is never closenag run ba yan bago ng error?
Resource leak: 'input' is never closedeto next pa try, checkmate na yan pag gumana 'to ->
import java.util.Scanner;
public class Example
{
public static void main(String[] args)
{
int number1, number2, sum;
Scanner input = new Scanner(System.in);
System.out.println("Enter First multiple");
number1 = input.nextInt();
System.out.println("Enter second multiple");
number2 = input.nextInt();
sum = number1 * number2;
System.out.printf("The product of both number is %d", sum);
}
}
Gumamit ka ng PC parr, ung compiler sa selpon ang ayawResource leak: 'input' is never closed
yung Pizza2.java ser Resource Leak erroreto next pa try, checkmate na yan pag gumana 'to ->
import java.util.Scanner;
public class Example
{
public static void main(String[] args)
{
int number1, number2, sum;
Scanner input = new Scanner(System.in);
System.out.println("Enter First multiple");
number1 = input.nextInt();
System.out.println("Enter second multiple");
number2 = input.nextInt();
sum = number1 * number2;
System.out.printf("The product of both number is %d", sum);
}
}

sira pa kasi laptop ko ser bukas nalng try ko sa net cafeGumamit ka ng PC parr, ung compiler sa selpon ang ayaw
nasulat ko na ser Thank you talaga..Eto Isulat mo sa papel, isave mo sa Notepad ng selpon mo,
import java.util.Scanner;
Class Pizza
{
public static void Main()
{
float diameter;
float radius;
float square;
float area;
float price;
float result;
Scanner input = new Scanner(You do not have permission to view the full content of this post. Log in or register now.);
System.out.println("Enter Diameter ");
diameter = input.nextInt();
System.out.println("Enter Price ");
price = input.nextInt();
radius = diameter * 2;
square = radius*radius;
area = 3.14*square;
result = price/area;
System.out.printf("Kalahati ng pizza ay %f", radius);
System.out.printf("Price per square inch is %f", result);
}
}

Pwede mo naman ireport..na click bait ako, please lang dun kyo sa tamang thread section.
Pwede mo naman ireport..
haha takot ka pala eh hahahaLast time na nag report ako nang mga threads meron tao nag backstab sakin. Kaya iwas muna, baka ma pag tripan na naman ako nang psychopath nang PHC.

nasulat ko na ser Thank you talaga..![]()
naaalala ko kase si jessica soho pota naiba tuloywalang laman yung mga functions mo ts...
kahit may masatisfy dun sa condition... wala ring mangyayari...
at... 'Tamako' yun hindi 'Tamago'...![]()