views:

74

answers:

1
#include<string.h>
void main()
{
    char name[50];
    int i,j;
    printf("Enter the name:>");
    scanf("%s",&name);
    j=strlen(name);
    for(i=0;i<j;i++)
{
    name[i] = name[i]+3;
}
    printf("ENCRYTED NAME=>%s",name);
}

This a caesar's cipher in c programming friends i want use this same thing in VC# where i will get input from user through textbox. please help me out.

A: 

If you make a console application, you can do this:

Console.Write("Enter the name:>");
string name = Console.ReadLine();
Rasmus Faber