SVG Ellipse – example

SVG Ellipse

SVG Ellipse – <ellipse> example <!DOCTYPE html> <html> <body> <svg height=”150″ width=”500″> <ellipse cx=”240″ cy=”100″ rx=”220″ ry=”30″ style=”fill:purple” /> <ellipse cx=”220″ cy=”70″ rx=”190″ ry=”20″ style=”fill:lime” /> <ellipse cx=”210″ cy=”45″ rx=”170″ ry=”15″ style=”fill:yellow” /> Sorry, your browser does not support inline SVG. </svg> </body> </html>   Output:   Example 2:  <!DOCTYPE html> <html> <body> <svg height=”100″ … Read more

Finding and Fixing a Virus

There are some tools and procedures that can tell with 99.44 percent accuracy whether your computer has a virus. Here are the actions to take:  Find out whether your computer has antivirus software:  Find out whether your antivirus software is up to date: If you already have antivirus software installed on your computer. … Read more

C Program to calculate Power of N using Recursion

c program to add 2 numbers

C Program to calculate Power of N using Recursion   #include<stdio.h> // function prototype declaration int power(int n1, int n2); int main() { printf(“\n\n\t\tStudytonight – Best place to learn\n\n\n”); int base, exp; printf(“Enter base number: “); scanf(“%d”, &base); printf(“\n\nEnter Power factor: “); scanf(“%d”, &exp); printf(“\n\n\n\t\t\t%d^%d = %d”, base, exp, power(base, exp)); printf(“\n\n\t\t\tCoding is Fun !\n\n\n”); … Read more

Looking at Common Virus Symptoms

Stalking the wild computer virus starts with observation: There are a lot of ways that a computer can begin to act strangely for no apparent reason. These changes in behavior may be the result of a virus, but there are other possible explanations as well. This article describes some typical virus-induced symptoms, as well as … Read more

Program to find Palindrome using Recursion

palindrome program in c

Program to find Palindrome using Recursion A Palindrome is a sequence that if reversed looks identical to the original sequence Eg : abba, level, 999 etc. #include<stdio.h> // declaring the recursive function int isPal(int ); /* global declaration to use the same value in both the functions */ int n; int main() { printf(“\n\n\t\tStudytonight – … Read more

SVG Line –

SVG Line

SVG Line – <line>   <!DOCTYPE html> <html> <body> <svg height=”210″ width=”500″> <line x1=”0″ y1=”0″ x2=”200″ y2=”200″ style=”stroke:rgb(255,0,0);stroke-width:2″ /> Sorry, your browser does not support inline SVG. </svg> </body> </html> Code explanation: The x1 attribute defines the start of the line on the x-axis The y1 attribute defines the start of the line on the … Read more

Tools Needed for Writing Viruses

Viruses are written in assembly language. High level languages like Basic, C, and Pascal have been designed to generate stand-alone programs, but the assumptions made by these lan- guages render them almost useless when writing viruses. They are simply incapable of performing the acrobatics required for a virus to jump from one host program to … Read more

The Functional Elements of a Virus

Every viable computer virus must have at least two basic parts, or subroutines, if it is even to be called a virus. Firstly, it must contain a search routine, which locates new files or new areas on disk which are worthwhile targets for infection. This routine will determine how well the virus reproduces, e.g., whether … Read more