Skip to content

Instantly share code, notes, and snippets.

View hygull's full-sized avatar
😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.

Rishikesh Agrawani hygull

😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.
View GitHub Profile
@hygull
hygull / printing table from 1 to 10.js
Created March 17, 2017 08:35
printing table from 1 to 10 created by hygull - https://repl.it/G0Ju/1
for (var i=1;i<=10;i++)
{
s = ""
for(var j=1;j<=10;j++)
{
s += i*j+"\t"
}
console.log(s)
}
@hygull
hygull / To print table of numbers in range [1,10] using nested for loop.java
Created March 19, 2017 12:01
To print table of numbers in range [1,10] using nested for loop created by hygull - https://repl.it/G2aK/6
/*
* created on : 19 March 2017.
* aim : To print table of numbers in range [1,10].
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{
//Outer for loop take cares of number of rows
@hygull
hygull / To create a rectangle using * characters having 5 rows and 10 columns.java
Last active March 19, 2017 12:28
To create a rectangle using * characters having 5 rows and 10 columns created by hygull - https://repl.it/G2a2/8
/*
* created on : 19 March 2017.
* aim : To create a rectangle using * characters having 5 rows and 10 columns.
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{
//Outer for loop take cares of number of rows
@hygull
hygull / To create a triangle using * characters.java
Created March 19, 2017 12:32
To create a triangle using * characters created by hygull - https://repl.it/G2bB/4
/*
* created on : 19 March 2017.
* aim : To create a triangle using * characters.
* note : The number of columns and rows will be same here for creating a better triangle,let's make it 10.
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{
@hygull
hygull / To create a triangle using * characters (2nd form of previous gist).java
Created March 19, 2017 12:47
To create a triangle using * characters (2nd form of previous gist) created by hygull - https://repl.it/G2bR/2
/*
* created on : 19 March 2017.
* aim : To create a triangle using * characters.
* note : The number of columns and rows will be same here for creating a better triangle,let's make it 10.
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{
@hygull
hygull / To create a triangle using * characters (3rd form).java
Created March 19, 2017 18:47
To create a triangle using * characters (3rd form) created by hygull - https://repl.it/G2qG/8
/*
* created on : 20 March 2017.
* aim : To create a triangle using * characters(Right shifted).
* note : The number of columns and rows will be same here for creating a better triangle,let's make it 10.
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{
@hygull
hygull / To create a triangle using * characters(Right shifted).java
Created March 19, 2017 19:04
To create a triangle using * characters(Right shifted) created by hygull - https://repl.it/G2r5/2
/*
* created on : 20 March 2017.
* aim : To create a triangle using * characters(Right shifted).
* note : The number of columns and rows will be same here for creating a better triangle,let's make it 10.
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{
@hygull
hygull / STL - using vector containers in C++.cpp
Last active March 20, 2017 06:28
STL - using vector containers in C++ created by hygull - https://repl.it/G3Yh/1
/*
date of creation : 20 march 2017.
aim of program : Using vector container in C++.
coded by : Rishikesh Agrawani.
Note : 1. begin(), end(), size(), push_back() are the functions used here.
2. If we will access the out of range index then we will get 0.
3. ++itr & itr++ both can be used while iterating through the list of items in vector.
4. If vector has 10 elements and if we try to access the expressions like floatVect[10], floatVect[15] then we'll get 0.
*/
@hygull
hygull / Using foreach loop in java.java
Last active March 23, 2017 02:17
Using foreach loop in java created by hygull - https://repl.it/G8gi/9
/*
* created on : 22 March 2017.
* aim : To use for-each loop in java.
* coded by : Rishikesh Agrawani.
* note : It is used to iterate over an array or collection.While iterating over a String, we need to convert the String into an array of characters.
*/
import java.util.ArrayList;
class Main
{
@hygull
hygull / To reverse the contents of a string without using any predefined methods.java
Last active March 23, 2017 18:51
To reverse the contents of a string without using any predefined methods created by hygull - https://repl.it/GbLh/3
/*
* created on : 23 March 2017.
* aim : To reverse the contents of a string without using any predefined methods.
* coded by : Rishikesh Agrawani.
*/
class Main
{
public static void main(String[] cmdArgs)
{