Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  oscar
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>

main()
{
     int d,m;
     printf("signo zodiacal\n");
     
     printf("ingrese el dia de nacimiento\n");  
        scanf("%i",&d);
        
     printf("ingrese el mes de su nacimiento de 1-12\n");
        scanf("%i",&m);
        
        if(m==1)
        {
             if(d<=20)
             {
                  printf("su signo es capricornio\n");
                       
             }
             else
             {
                  printf("su signo es acuario");                  
                  
             }
                          
            }   
            
            
            
             if(m==2)
        {
             if(d<=20)
             {
                  printf("su signo es acuario\n");
                       
             }
             else
             {
                  printf("su signo es picis");                  
                  
             }
                          
            }   
            
            
             if(m==3)
        {
             if(d<=20)
             {
                  printf("su signo es picis\n");
                       
             }
             else
             {
                  printf("su signo es aries");                  
                  
             }
                          
            }   
            
            
             if(m==4)
        {
             if(d<=20)
             {
                  printf("su signo es aries\n");
                       
             }
             else
             {
                  printf("su signo es tauro");                  
                  
             }
                          
            }   
            
            
             if(m==5)
        {
             if(d<=20)
             {
                  printf("su signo es tauro\n");
                       
             }
             else
             {
                  printf("su signo es geminis");                  
                  
             }
                          
            }   
            
            
             if(m==6)
        {
             if(d<=20)
             {
                  printf("su signo es geminis\n");
                       
             }
             else
             {
                  printf("su signo es cancer");                  
                  
             }
                          
            }   
            
            
             if(m==7)
        {
             if(d<=20)
             {
                  printf("su signo es cancer\n");
                       
             }
             else
             {
                  printf("su signo es leo");                  
                  
             }
                          
            }   
            
            
             if(m==8)
        {
             if(d<=20)
             {
                  printf("su signo es leo\n");
                       
             }
             else
             {
                  printf("su signo es virgo");                  
                  
             }
                          
            }   
            
            
             if(m==9)
        {
             if(d<=20)
             {
                  printf("su signo es virgo\n");
                       
             }
             else
             {
                  printf("su signo es libra");                  
                  
             }
                          
            }   
            
            
             if(m==10)
        {
             if(d<=20)
             {
                  printf("su signo es libra\n");
                       
             }
             else
             {
                  printf("su signo es escorpio");                  
                  
             }
                          
            }   
            
            
             if(m==11)
        {
             if(d<=20)
             {
                  printf("su signo es escorpio\n");
                       
             }
             else
             {
                  printf("su signo es sagitario");                  
                  
             }
                          
            }   
            
            
             if(m==12)
        {
             if(d<=20)
             {
                  printf("su signo es sagitario\n");
                       
             }
             else
             {
                  printf("su signo es capricornio");                  
                  
             }
                          
            }   
            
               
}

          
Comments: