Welcome, Guest.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SWAT128

Pages: [1] 2 3 ... 17
1
New Member Portal / Re: If you are new look here.
« on: January 30, 2015, 09:04:17 am »
Hi I am new here.

2
Random lnsanity / Re: What's up bitches.
« on: May 19, 2013, 10:45:55 pm »
Hi people.
Cali is fine, I moved earlier this year.
What's been going on in CN?

3
Random lnsanity / Re: What's up bitches.
« on: May 16, 2013, 12:33:31 am »
 :delta1212:
New cupcake.

4
Random lnsanity / What's up bitches.
« on: May 16, 2013, 12:30:26 am »
 :delta1212:

5
Random lnsanity / Re: lol, C++
« on: February 22, 2012, 01:27:46 am »
Code: [Select]
#include <iostream>
using namespace std;



void divisibleBy (int x){

if (x % 5==0){
    cout << "is divisible by five " << endl;
}else{
    cout << "is not divisible by five " << endl;
}
 if (x % 10==0){
    cout << "and divisible by ten" << endl;
}else{
    cout << "but not divisible by ten" << endl;
}


}



int main()
{
  int b;

    char Answer;

    cout << "Please enter a number" << endl;

  cin >> Answer;



  divisibleBy(Answer);

  return 0;
}

It's still giving me fucked up answers.

6
Random lnsanity / Re: lol, C++
« on: February 22, 2012, 01:22:41 am »
Quote
Write a C++ function called divisibleBy that takes an integer as a parameter, and prints out the integer and then "is divisible by five" if the integer is evenly divisible by 5, otherwise it prints "is not divisible by five".  If the number IS evenly divisible by 5, also print " and divisible by ten" if it is also divisible by 10, otherwise print " but not divisible by ten".

I have to make it say that it's not divisible by five or ten if it isn't. That's where I'm having trouble, it keeps telling me that everything is divisible by five and ten.

7
Random lnsanity / lol, C++
« on: February 22, 2012, 01:02:46 am »
Quote
#include <iostream>
using namespace std;

void divisibleBy (int x){

void divisibleBy (int x){

if (x % 5){
    cout << "is divisible by five " << endl;
}else{
    cout << "is not divisible by five " << endl;
}
 if (x % 10){
    cout << "and divisible by ten" << endl;
}else{
    cout << "but not divisible by ten" << endl;
}


}



int main()
{
  int b;

    char Answer;

    cout << "Please enter a number" << endl;

  cin >> Answer;



  divisibleBy(Answer);

  return 0;
}


I'm making a function to see if a number the user inputs is divisible by five and ten. The problem I'm having is that no matter what number I put in, it says it's divisible by both five and ten.



Edit: Made that change and now it's telling me numbers that are divisible by five aren't.

9
Anime / Re: Looking for some suggestions
« on: September 14, 2011, 11:57:50 pm »
Durarara!! is really the anime from the last couple years that is actually good.

I just looked at the summer/fall anime seasons... it's all so shitty. :(

Steins;Gate was fucking amazing, watch that.

10
New Member Portal / Re: I IS JUMBO CACTAUR!!!!
« on: August 15, 2011, 10:33:03 pm »
Jumbo for CP.

11
Anime / Re: Anime.
« on: July 27, 2011, 04:30:36 am »
never heard of it

It's airing right now if you want to start watching. It's 24 episodes long and 17 just aired a day or two ago.

12
Anime / Re: Anime.
« on: July 26, 2011, 02:33:14 am »
Everyone should watch Steins;Gate, it's about time travel and is pretty awesome.

13
Tech Trades / Re: Selling tech 6mil/150
« on: June 11, 2011, 04:07:21 am »
Got another slot open.

14
Tech Trades / Re: Selling tech 6mil/150
« on: June 08, 2011, 11:09:51 pm »
Got two slots open, get them while they're lukewarm.

15
Random lnsanity / Re: Happy Forum-Birthday Flask
« on: May 23, 2011, 03:57:19 am »
Flask

16
Random lnsanity / Re: LA Noire
« on: May 08, 2011, 02:22:58 pm »
Looks pretty cool.

17
Tech Trades / Selling tech 6mil/150
« on: April 27, 2011, 12:09:59 am »
I will keep selling to whoever gets the slot until it's time for me to start buying.



All sales final. No refunds.

19
Anime / Re: Anime.
« on: March 14, 2011, 10:33:07 pm »
I think Japan died...

20
Ambassador Sign-Ups / Re: Ragnarok Diplomat Requesting Re-Mask
« on: March 04, 2011, 01:27:32 pm »
Rejected.

Pages: [1] 2 3 ... 17

SMF 2.0.15 | SMF © 2017, Simple Machines
Scratch Design by DzinerStudio

Page created in 0.22 seconds with 25 queries.
Triumvirate:
Shadow

Head of Foreign Affairs:
Brian

Head of Internal Affairs:
Croix

Head of Military Operations:
im317