diff --git a/Hackerearth/Basic Implementation Practice Problem/ques 6 b/Hackerearth/Basic Implementation Practice Problem/ques 6 new file mode 100644 index 0000000..65c6714 --- /dev/null +++ b/Hackerearth/Basic Implementation Practice Problem/ques 6 @@ -0,0 +1,24 @@ +#include +using namespace std; +int main() +{ + int t; + cin >> t; + while(t--) + { + int i,j,n; + cin >> n; + for(i=0;i<(n);i++) + { + for(j=0;j<((2*n)-1);j++) + { + if(((i+j)>=(n-1)) && (j-i)