Search found 1 match

by Dendesha
Thu Jan 31, 2013 9:00 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31339

Re: 488 - Triangle Wave

I don't know why am I getting wrong answer can any one help? #include<stdio.h> int main() { int t,n,f; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&f); for(int l=0;l<f;l++) { for(int j=1;j<=n;j++) { for(int k=0;k<j;k++) { printf("%d",j); } printf("\n"); } for(int m=n-1;m>0;m--) { for(int h=0;h<m;h+...

Go to advanced search