/*
Name: C语言经典算法100例010
Copyright: *
Author: 巧若拙
Date: 25-08-14 22:59
Description:
题目:打印楼梯,同时在楼梯上方打印两个笑脸。
*/
#include<stdio.h>
#include<stdlib.h>
void fun1(void);
int main(void)
{
fun1();
system("pause");
return 0;
}
void fun1(void)
{
int i, j;
printf("%c%c\n", 1, 2);
for (i=1; i<=8; i++)
{
for (j=1; j<=i; j++)
{
printf("%c%c", 219, 219);
}
printf("\n");
}
printf("\n");
}
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
Name: C语言经典算法100例010
Copyright: *
Author: 巧若拙
Date: 25-08-14 22:59
Description:
题目:打印楼梯,同时在楼梯上方打印两个笑脸。
*/
#include<stdio.h>
#include<stdlib.h>
void fun1(void);
int main(void)
{
fun1();
system("pause");
return 0;
}
void fun1(void)
{
int i, j;
printf("%c%c\n", 1, 2);
for (i=1; i<=8; i++)
{
for (j=1; j<=i; j++)
{
printf("%c%c", 219, 219);
}
printf("\n");
}
printf("\n");
}
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------