Category: Problem Solution
Here yo can see what is triangular number: https://en.wikipedia.org/wiki/Triangular_number public class NumShape { public static void main(String[]…
#include<iostream> #include<cstdio> using namespace std; int main() { int testcase,star,i,j,k; cin>>testcase; for(i=0; i<testcase; i++) { cin>>star; for(j=0;…
Solution: #include<iostream> #include<cstdio> using namespace std; int main() { int testcase,i,num_range,j; cin>>testcase; for(i=1; i<=testcase; i++) { cin>>num_range;…
1st approach: #include<iostream> #include<cstdio> using namespace std; int main() { int counts=0; for(int i=1000; i>=1; i–) {…
http://ideone.com/ItvUGS
I was using code blocks but it was giving me compiler error for c++11 was not on…
Recent Comments