Friday 7 July 2017

Switch Case C Language

Switch Case


A switch case is uncomplicated solution/alternate of complicated nested if-else. It is useful when there is a need check to arise multiple possibility on single variable like print day of the week name based on the given day number. Best for long if statements that compare a variable to several "integral" values ("integral" values are simply values that can be expressed as an integer, such as the value of a char).

Switch case syntax

Above figure is showing syntax of switch case. In syntax break and default are in bracket, which means they are optional. You can use more than one case without using break. If break is omitted, then all the ca

Thursday 6 July 2017

Java Script Date dd/mm/yyyy format

Get Java Script Date dd/mm/yyyy format

<html>
<head>
    <title>Girfa Student Help</title>
    <script>
        function GetDate()
        {
            var d = new Date();

Lucas Series

Lucas Numbers similar to the Fibonacci series that often occurs when working with the Fibonacci series. Edouard Lucas (1842-1891) (who gave the name "Fibonacci Numbers" to the series written about by Leonardo of Pisa) studied this second series of numbers: 2, 1, 3, 4, 7, 11, 18, .. called the Lucas numbers in his honour. On this page we examine some of the interesting properties of the Lucas numbers themselves as well as looking at its close relationship with the Fibonacci numbers. The following page generalises further by taking any two starting values.

/* #######    Girfa Student Help ###############
      Lucas Sequesnce Program
      for more program visit : https://girfahelp.blogspot.in/p/c-language-assignment.html
  ##############################################  */
#include<stdio.h>
void main()
{
    int a,b,c;
    clrscr();
    a=1;

Saturday 24 June 2017

Number to word convert

Q : Write a program to convert a number into its equivalent word without using character array?

/* ##########################################
     Girfa : Student Help
     Program : Number to word converter
     for more program visit :
   ##########################################*/
#include<stdio.h>
#include<conio.h>
void single(int);
int reverce(int);
void ten(int);
void hundred(int);
void printhundred(int);
void main()
{