View Code of Problem 3851

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

Double click to view unformatted code.


Back to problem 3851