#include<stdio.h> void main(){ int i,j; char c[5]={"*****"}; for(i=0;i<5;i++){ printf(" "); for(j=0;j<i;j++) printf(" "); puts(c); } }
#include<stdio.h> void main(){ char s1[80],s2[80]; int i; printf("input s2:"); gets(s2); for(i=0;i<80&&s2[i]!='\0';i++) s1[i]=s2[i]; s1[i+1]='\0'; printf("\ns1:%s\n",s1); }