Skip to content

Instantly share code, notes, and snippets.

/**
* IMPORTANT: Make sure you are using the correct package name.
* This example uses the package name:
* package com.example.android.justjava
* If you get an error when copying this code into Android studio, update it to match teh package name found
* in the project's AndroidManifest.xml file.
**/
package com.example.android.justjava;
@ssindher11
ssindher11 / Insertion.cpp
Created December 10, 2017 15:54 — forked from anonymous/Insertion.cpp
Insertion created by ShreySindher - https://repl.it/@ShreySindher/Insertion
#include<stdio.h>
int main()
{
int n,p,j,num;
printf("Enter number of elements: ");
scanf("%d",&n);
int ar[n];
for(int i=0; i<n; i++)