CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Boolean exercise

  1. #1
    Join Date
    Feb 2012

    Boolean exercise

    hi every one

    I have a exercise when i going to use boolean.

    Im need to do 3 intergervaribals var1 var2 var3 and then i get same claim im going to get in to it like one of it is: The number var1 is evenly divisible by 7.

    i figuer out that i can use samthing like this.
    boolean sv = (var1%7 == 0);
    i know how to do the boolean and look if its true or not but i dont know how to use it when im going to get 3 diffrent intergervaribals

    plz can anyone show my how you type this program so i can understand it. and its only a exercise so i dont need to show it to anyone its only for my self to learn, so its no real homework that

  2. #2
    Join Date
    May 2006

    Re: Boolean exercise

    Sorry but I don't understand what you are trying to do.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)