[ create a new paste ] login | about

Link: http://codepad.org/EWod4gf2    [ raw code | output | fork ]

C, pasted on May 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<stdio.h>
int main(){
	int i,j;
	char a[2][20];
	for(i=0;i<2;i++){
		scanf("%s",&a);
	} 
	for(i=0;i<2;i++){
		for(j=0;j<20;j++){
			if('a'<=a[i][j]&&a[i][j]<='z')
			a[i][j]=a[i][j]-32;
		}
	}
	for(j=0;j<20;j++){
		if(a[0][j]=a[1][j])
		printf("%c",a[1][j]);
		
	}
	return 0;
} 


Output:
1
T�U��IV�.���


Create a new paste based on this one


Comments: