#include<stdio.h>
#include<string.h>
#include<math.h>
void main(){
    int n;
    char str[20];
    printf("ENTER ANY STRING =\n");
    scanf("%s",&str[0]);
    n=strlen(str);
    printf("STRING WITH ALTERNATE DISPLAY : ");
    for(int i=0;i<n;i++){
        if(i%2==0){
            printf( "%c" ,str[i]);
        }
    }
}


Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: