#include <iostream>
#include <conio.h>
int main ()
{
int nLiczba ;
std :: cout << "Podaj liczbe" ;
std :: cin >> nLiczba ;
int a = 0.0 ;
const int b = 1-9 ;
const int c =
{
if (nLiczba <= 10)
{
nLiczba = c ;
}
}
const int d ;
{
if (nLiczba > 0 )
{
nLiczba = d ;
}
}
switch (nLiczba) ;
{
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 a easy program and I'dont know why i have so many errors. Can anyone help me pliss. The program is sapoust to ask the player to give him a numer and after sappereat it to one of four gruoup. I was trying to do that for 2 weeks but thats not working. Help !!!!!!!!!!!!!!!!!!!!!!
Aucun commentaire:
Enregistrer un commentaire