Friday, June 20, 2014

printing spaced letters in a string like ABC to A B C

#include<stdio.h>
#include<conio.h>
void header()
{
    printf("\n\n\n\n\n\n\n\t\tBUILT AND DESIGNED BY >> ARSLAN UD DIN SHAFIQ\n\n\t\tWebsite>>\twww.CWorldbyAS.blogspot.com\n");
    printf("\n\t\tCOMSATS Institute of Information Technology,\n\n\t\t\t\t\t  Lahore , Pakistan\n\n\n");
}
int main()
{
    char a[30]={0};
    int i;
    header();
    system("pause");
    system("cls");
    printf("Enter String : ");
    scanf("%s",a);
    printf("\n");
    for(i=0;a[i]!='\0';i++)
    {
        printf(" %c ",a[i]);
    }
    printf("\n\n\n\n");
    getch();

}

No comments:

Post a Comment