Using while program plz needed urgently tommorow exam
question no 12 plz fast
using while
java
Attachments:
Answers
Answered by
0
class Special
{
public static void main(int input)
{ int store=input;
int temp=store/10, temp2=store%10;
if(((temp+temp2)+(temp*temp2))==input)
{
System.out.println("Special two-digit number");
}
else
{
System.out.print("Not a Special two-digit number");
}
}
}
Hope it helps,
if(help==useful)
{
*Mark as brainliest*
}
else
{
*Doesn't matter, help was useless:-(*
}
{
public static void main(int input)
{ int store=input;
int temp=store/10, temp2=store%10;
if(((temp+temp2)+(temp*temp2))==input)
{
System.out.println("Special two-digit number");
}
else
{
System.out.print("Not a Special two-digit number");
}
}
}
Hope it helps,
if(help==useful)
{
*Mark as brainliest*
}
else
{
*Doesn't matter, help was useless:-(*
}
yashthoapte11:
I said using while
Similar questions