Different shape

No comments

#include<stdio.h>
int main(){
int a=0;
for(int j=0;j<6;j++){

for (int i=0;i<=j;i++)
{
a++; if(a==10){a=0;}
printf("%d ",a);
}
printf("\n");}
return 0;
}

No comments :

Post a Comment