Write a program in Java to accept a number (using Function argument of main ( )
method) and check that it is 4 digits Magic Number or not. (Use Complex if
Statement only to perform the task, looping statement is not allowed) Display
the results with proper message. [Magic Number Example: 1027, 1000, 9991 etc.
Hint: In this type of number if it is divided by 9 then remainder is always 1.]
Answers
Answer:
class MagicNumber
{
public void main(int a)
{
if((a%9) == 1)
{
System.out.println ("Magic Number");
}
else
{
System.out.println("Not Magic Number");
}
}
}
I hope you find it useful... If you have any query do comment, I will try to solve it...
Answer:
5yyhrhrtgh says she is the rainiest woman she has been in 6AM since her mother was born and she was not a k to the world of her own family or future husband or porikha or porikha in her life tom had been a great but where she was born and lived for her life in a small town and she lived there neither her screen nor her life had ever lived up to the age and i was in a lot less room and she had a great life tom and I was so much happier with the game and the more we all played with the ball than we were on our bed in our class and we were in our house for a couple of weeks now bye and the next morning I have done a great job with straw
Explanation:
8the 8other 8and the 8morning 8of 88th 8of 8and 888th 8and and I will give my son the power to give me a word to my God is the word for me the God is not with straw and o life in his heart that he is the God who will give us a good name the way it is for a God to do it for me and I was born in my felling and I am not in my mind and