Search:

Type: Posts; User: dankassdann

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    5,936

    allow decimals

    when I use "int" it doesnt allow decimals. What allows decimals?. Also lets say I make an integer called x, a and b, and I want x to be a*b what should I do?
  2. Replies
    5
    Views
    1,541

    Ohhhh now I see :) Thanks!

    Ohhhh now I see :) Thanks!
  3. Replies
    5
    Views
    1,541

    if (13>age && age>19) {cout

    if (13>age && age>19) {cout << "Well, your' not a teenager, thats for sure.\n";}
    else if (13<=age && age<=19)

    Obviously this is wrong cause it didnt work but whats wrong.
  4. Replies
    5
    Views
    1,541

    something wrong with code

    #include <cstdlib>
    #include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
    cout << "Hi! How old are you?\n";
    int age;
    cin>> age;
Results 1 to 4 of 4