Search found 1 match

by ahashans
Wed Aug 05, 2015 1:56 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30429

Re: 488 - Triangle Wave

I can't find the problem of my code. Its showing wrong answer. Here is the code: #include<iostream> using namespace std; int main() { int i,j,k,amplitude,frequency,test_case; cin>> test_case; cin>>amplitude>>frequency; while(test_case--){ for(k=1;k<=frequency;k++){ for(i=1;i<=amplitude;i++){ for(j=1...

Go to advanced search