Print Address Using String


            main()
            {
                char city[20], state[20], country[20], address[60];
                clrscr();
            
                printf("Enter the City Name : ");
                scanf("%s", city);
            
                printf("\n Enter the State Name : ");
                scanf("%s", state);
            
                printf("\n Enter the Country Name : ");
                scanf("%s", country);
            
                strcat(city, " ");
                strcat(city, state);
                strcat(city, " ");
                strcat(city, country);
                strcpy(address, city);
                
                printf("\n Address is %s", strupr(address));
            
                getch();
            }
            

Output: