Skip to content

Instantly share code, notes, and snippets.

View manuj10's full-sized avatar
🚀
Building Mensari

Manuj Paliwal manuj10

🚀
Building Mensari
View GitHub Profile
@manuj10
manuj10 / fibonacci
Last active December 13, 2015 18:19
computing fibonacci sum of even numbers upto 4,000000
#include <iostream>
int main()
{
using namespace std;
int num=0,num1=1,num0=0,sum=0;
while(num<=4000000)
{num=num1+num0;
num0=num1;
num1=num;
if(num%2==0)
@manuj10
manuj10 / vdu.c
Created August 22, 2012 08:20
This piece of code shows how we can access video memory and manipulate the corresponding memory addresses or we can say the color and characters at a memory location and can have fun with it.//compiled and run on turbo c/c++ version 3.0
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
void main()
{char far *p;
char w[100];
int i,j,k;
int m=10;
p=(char far*) 0xb8000000L;//starting address of vdu memory