View Code of Problem 3926

#include<stdio.h>
#include<string.h>
/*先算出整数的每一位数字,然后根据数字对数字中的位数自加,*/
typedef struct big
{
	char num[100];
}big;
int main()
{
	int n,m,a,b;//第一行输入n,m,a,b (1≤ n,m,a,b≤10)
	scanf("%d%d%d%d",&n,&m,&a,&b);
	big g[n];
	for(int i=0;i<n;i++)
	{
		scanf("%s",&g[i]);//记住结构体要返回数组首地址 
	}
	for(int i=0;i<n;i++)
	{
		for(int t=0;t<a;t++)
		{
		for(int j=0;j<m;j++)
		{
			for(int k=0;k<b;k++)
			{
				printf("%c",g[i].num[j]);
			}
		}
		printf("\n");
		}
		
	}

	return 0;
}

Double click to view unformatted code.


Back to problem 3926