Skip to content

Instantly share code, notes, and snippets.

View prodhan's full-sized avatar
🏠
Working from home

Ariful Islam prodhan

🏠
Working from home
View GitHub Profile
@prodhan
prodhan / ForLoop.c
Created May 7, 2017 18:27
This C Program for testing For loop
#include<stdio.h>
#include<conio.h>
int main(){
int i;
for(i=1; i<=10; i++)
{
printf("%d\n", i);
}
@prodhan
prodhan / insert-student.php
Created April 2, 2018 04:59
ADN CIW level 3
<?php
include('header.php');
include('connection.php');
if(isset($_POST['submit'])){
$name=$_POST['name'];
$roll=$_POST['roll'];
$phone=$_POST['phone'];
$sql="INSERT INTO info (sname, roll, phone) VALUES('$name', '$roll', '$phone')";
#mydiv {
background-color: lightblue;
width: 200px;
height: 200px
}
@prodhan
prodhan / activity_main.xml
Created August 5, 2018 17:46
For only educational purpose
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/bg"
android:weightSum="10"
tools:context=".MainActivity">
@prodhan
prodhan / binomial.cpp
Created January 14, 2019 14:51
Binomial theorem in c++
/*
Created By Ariful Islam
Batch E-64 (DIU)
Roll: 34
*/
#include<iostream>
#include <math.h>
using namespace std;
@prodhan
prodhan / insertion_sort.cpp
Created January 20, 2019 12:58
Insertion sort using c++
/*
Created By Ariful Islam
Student of Dhaka Internationa University
Learn how does work this sort https://visualgo.net/en/sorting
*/
#include<iostream>
using namespace std;
@prodhan
prodhan / binomial_2.cpp
Created January 22, 2019 21:44
Binomial theorem in c++ with another method
/*
Created By Ariful Islam
Batch E-64 (DIU)
Roll: 34
*/
#include<iostream>
#include <math.h>
using namespace std;
@prodhan
prodhan / bisection.cpp
Created January 22, 2019 21:56
Bisection method in C++
/*
Created By Ariful Islam
Batch E-64 (DIU)
Roll: 34
*/
#include<iostream>
#include <math.h>
using namespace std;
@prodhan
prodhan / knapsack.cpp
Created January 31, 2019 21:06
C++ program to get the maximum total value in the knapsack
/*
* A c++ program to get the maximum total value in the knapsack
* Created By Ariful Islam
* Student of Dhaka International University
* Batch of E-64
*/
#include<iostream>
@prodhan
prodhan / bisection_22.cpp
Created March 8, 2019 18:32
Problem No 22 using Bisection Method
/*
Created By Ariful Islam
Batch E-64 (DIU)
Roll: 34
problem no 22
EQN: x=cubic root (48)
Method: Bisection
Note: Root lies between 3 and 4
*/