Programming Tools

where students meet to knowledge

Month

March 2017

Fibonacci series

#include<stdio.h> #include<math.h> void main() { int n,a,b; printf(“\nEnter the End term : “); scanf(“%d”,&n); printf(“\nFibonacci series : [ “); a=0; b=1; while(a<=n); { printf(“%d”,a); a=a+b; b=a-b; } printf(“]\n”); }

Check Number is Octal and Hexadecimal

#include<stdio.h> #include<math.h> void main() { int n; printf(“\nEnter a Number : “); scanf(“%d”,&n); printf(“\nOct Eqr : %o”,n); printf(“\nHex Eqr : %x”,n); }

Prime number progarm in C

#include<stdio.h> main() { int c,p=0,a,n; printf(“Enter the no. : “); scanf(“%d”,&n); for(c=2;c<a;c++) { if(a%c==0) { p=1; } } if(p==1) { printf(“No. is not prime”); } else printf(“No is prime”); }

Reverse of a number in C

REVERSE OF A NUMBER #include<stdio.h> main() { int n,q,r,x; printf(“Enter the number : “); scanf(“%d”,&n); q=n; x=0; while(q) { r=q%10; x=x*10+r; q=q/10; } printf(“Reverse of %d is %d\n\n”,n,x); }

CSS How To

CSS How To When a browser reads a style sheet, it will format the HTML document according to the information in the style sheet. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style… Continue Reading →

JavaScript

Why Study JavaScript? JavaScript is one of the 3 languages all web developers must learn: 1. HTML to define the content of web pages 2. CSS to specify the layout of web pages 3. JavaScript to program the behavior of… Continue Reading →

HTML Blocks

HTML Block and Inline Elements Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline. Block-level Elements A block-level element always starts on… Continue Reading →

HTML Lists

HTML Lists ¬†HTML List Example An Unordered List: Item Item Item Item An Ordered List: First item Second item Third item Fourth item Unordered HTML List An unordered list starts with the <ul> tag. Each list item starts with the… Continue Reading →

PHP 5 if…else…elseif Statements

Conditional statements are used to perform different actions based on different conditions. PHP Conditional Statements Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do… Continue Reading →

© 2017 Programming Tools — acadinetech.com