Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stuck help  RSS feed

 
Thabo Dawood
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write an application that reads two intergers, determine whether the first tripled is a multiple of the second number doubled, and print the results.(Using the remainder operator)
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thabo,
That looks like homework. What do you have so far? Or where did you get stuck. Also see our Homework wiki page
 
Campbell Ritchie
Marshal
Posts: 55680
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
…and welcome to the Ranch

If you haven't got much done yet, I suggest you write a program which reads two integers and prints them out. Then you can use that as the first stage for enlarging your program to fulfil the above requirements.
By the way, did the instructions say integer, Integer or int? In Java® the three are different.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!