View Code of Problem 3851

#include<stdio.h>
#include<string.h>
int main(){
	int n;
	scanf("%d",&n);
	char a[10000];
	char b[100]="qwertyuiopasdfghjklzxcvbnm";
	char c[100]="wertyuiop[sdfghjkl;xcvbnm,";
	for(int i=0;i<n;i++){
		scanf("%s",a);
		for(int j=0;j<strlen(a);j++){
			for(int k=0;k<26;k++){
				if(a[j]==c[k])printf("%c",b[k]);
			}
		}
		printf("\n");
	}
}

Double click to view unformatted code.


Back to problem 3851