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?
Type: Posts; User: dankassdann
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?
Ohhhh now I see :) Thanks!
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.
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Hi! How old are you?\n";
int age;
cin>> age;