Search found 1 match
- Thu Jan 31, 2013 9:00 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 38288
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&q...