/* This program has been worked on from http://www.s-anand.net/euler.html */ #include <stdio.h> sofmul() { int n, i; n = 0; for (i = 0 ; i < 1000 ; i++) { if ( !(i % 5) || !(i % 3) ) n = n + i; } printf(“Sum of the multiples of 3 and 5 …
Category Archives: Algorithm
How to write a program to multiply a number by 4 using a bitwise operator ?
/* Part of this program copied from http://www.sanfoundry.com/c-program-multiply-number-4-using-bitwise-operators/ */ #include <stdio.h> multbitwise() { long number; printf(“Enter an integer: “); scanf(“%ld”,&number); number = number << 2; printf(“Result is %ld \n”,number); } /* http://stackoverflow.com/questions/4456442/interview-multiplication-of-2-integers-using-bitwise-operators */ /* http://www.geeksforgeeks.org/multiply-two-numbers-without-using-multiply-division-bitwise-operators-and-no-loops/ */ /* http://en.wikipedia.org/wiki/Bitwise_operation */
beautifulwork search algorithm
Functions 1. search database (also web). 2. do manual analysis of searched data. 3. create tags from data analyzed. 4. search for related data from existing tags. 5. manually use the results to develop knowledge. Note : It should be manually configurable and also automatically add debian and debian related tags(key words) in the next …
Code relating to GIMP – selected color enhancement
/* Color Enhance 0.10 — image filter plug-in for GIMP * * Copyright (C) 1999 Martin Weber * Copyright (C) 1996 Federico Mena Quintero * * You can contact me at martweb@gmx.net * You can contact the original GIMP authors at gimp@xcf.berkeley.edu * * This program is free software; you can redistribute it and/or modify …
Continue reading “Code relating to GIMP – selected color enhancement”
Code from GIMP relating to – desaturate based on luminosity
/* GIMP – The GNU Image Manipulation Program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, …
Continue reading “Code from GIMP relating to – desaturate based on luminosity”
Relating inside code which creates a text layer in GIMP
/* GIMP – The GNU Image Manipulation Program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * GimpTextLayer * Copyright (C) 2002-2004 Sven Neumann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the …
Continue reading “Relating inside code which creates a text layer in GIMP”