En la función principal es mas conveniente poner int main o void main y no main , si pones int main debes retornar un valor que en este caso seria cero y si pones void no retornas nada.
No es muy recomendable usar scanf ya que tiene algunos inconvenientes y a la hora de usar if , else o else if siempre hay que usar llaves.
if(Condición)
{
}
programa en c
Moderadores: Kravenbcn, largeroliker, fidelcastro, cerealkiller, pspCaracas, m0skit0, LnD, ka69, zacky06
Ir a
- ↳ IRC/Chat
- ↳ IRC DaXHordes.org
- ↳ IRC Dark-AleX.org
- El rincón de los DaXHordes
- ↳ Anuncios
- ↳ Encuestas y discusiones
- ↳ Ayuda general
- ↳ Buzón de sugerencias
- ↳ Off-Topic
- PlayStation 4
- ↳ Noticias
- ↳ Ayuda
- ↳ Tutoriales
- ↳ Homebrew
- ↳ Juegos
- PlayStation Vita
- ↳ Noticias
- ↳ Rumores
- ↳ Ayuda
- ↳ Tutoriales
- ↳ Homebrew
- ↳ Homebrew ePSP
- ↳ Juegos
- ↳ Desarrollo
- ↳ Hardware
- PlayStation 3
- ↳ Noticias
- ↳ Rumores
- ↳ Ayuda
- ↳ Tutoriales
- ↳ Homebrew
- ↳ Juegos
- ↳ Desarrollo
- ↳ Hardware
- PlayStation Portable
- ↳ Noticias
- ↳ Rumores
- ↳ Ayuda
- ↳ Tutoriales
- ↳ Homebrew
- ↳ Juegos
- ↳ Desarrollo
- ↳ Proyecto Emulador
- ↳ Hardware
- PlayStation Network
- ↳ General
- ↳ Ayuda
- ↳ Trofeos
- ↳ Clanes y quedadas
- ↳ Home
- Otros Mundos
- ↳ PlayStation 2
- ↳ PlayStation
- ↳ Consolas Nintendo
- ↳ Xbox 360/Xbox One
- ↳ Otras Consolas
- Tecnología
- ↳ Noticias
- ↳ Ayuda
- ↳ Tutoriales
- ↳ Software
- ↳ Hardware
- ↳ Smartphones/Tablets
- ↳ Programación
- ↳ Juegos
- ↳ Diseño
- GNU/Linux
- ↳ Noticias
- ↳ Ayuda
- ↳ Tutoriales
- ↳ Software
- English Corner
- ↳ PSP
- ↳ PS3
- ↳ Other Systems
- ↳ Off-Topic