Category: Problem Solution

12
May
2016

Triangular Number Java Code True or False

Here yo can see what is triangular number: https://en.wikipedia.org/wiki/Triangular_number public class NumShape { public static void main(String[]…

11
May
2016

Problem 5 from 52 programming problems book

#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;…

11
May
2016

Problem 4 from 52 programming problems book

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;…

11
May
2016

Problem 3 from 52 programming problems book

1st approach: #include<iostream> #include<cstdio> using namespace std; int main() { int counts=0; for(int i=1000; i>=1; i–) {…

08
May
2016

Problem 1 from 52 programming problems book

  http://ideone.com/ItvUGS

08
May
2016

Problem 2 from 52 programming problems book

I was using code blocks but it was giving me compiler error for c++11 was not on…