p43

#include<stdio.h>
#include<stdio.h>
int main() {
int i,j,n=5;
for (i=1;i<=n;i++) {
for (j=n;j>=1;j--) {
if(i==j)
        printf("*");
        else
        printf("%d",j);
}
printf("\n");
}
return 0;
}

No comments:

Post a Comment