#include <iostream>
#include <conio.h>
int main ()
{
int nNumber ;
std :: cout << "Type a number: ";
std :: cin >> nNumber ;
int a = 0.0 ;
const int b = 1-9 ;
const int c =
{
if (nNumber <= 10)
{
nNumber = c ;
}nNumber
}
const int d ;
{
if (nNumber > 0 )
{
nNumber = d ;
}
}
switch (nNumber) ;
{
case a : std :: cout << "else" ;
case b : std :: cout << "1 singn number" ;
case c : std :: cout << "2 sings number" ;
case d : std :: cout << "negative number" ;
}
getch () ;
}
I'm making an easy program and I don't know why I have so many errors. Can anyone help me? The program is supposed to ask the user to give him a number and after that match it to one of four group. I was trying to do that for 2 weeks but it doesn't work.