WAP to rail fence Algorithm

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
    char s[10];
    int i,a,b,c;
    clrscr() ;
    printf("Enter the plaintext:");
    scanf("%s",&s);
    printf("%s\n",s);

    for(i=0;i<strlen(s);i+=2)
    {
        b=s[i];
        printf("%c",b);

    }
    for(i=0;i<=strlen(s);i+=2)
    {
        a=s[i+1];
        printf("%c",a);
     }

    getch();
}

Related Posts Plugin for WordPress, Blogger...

Engineering material

GTU IDP/ UDP PROJECT

GTU IDP/ UDP PROJECT

Patel free software download

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP