Thursday 26 January 2017

Differentiate between if and switch case

NIELIT O Level January-2016

Q 6 B (i) :  Differentiate between  if and switch case

Solution : 
While programming, a number conditions come and a number of decisions need to be taken by a programmer. For decision making in C programming, the statements such as if, if..else, else if, switch case etc.
Though which when number of possible condition got increase in some scenario then if-else ladder implementation become complicated. So we can achieve this using switch case in simple manner with decreasing complexity.

Wednesday 25 January 2017

function to print the series

NIELIT O Level
C Language Paper 
January-16
Question no: (6.b)

Write a function to print the sum of the following series:
                               1 + 22 + 33 + … + nn

Solution : 



/*   ################################
     Girfa Student Help
     Function for series printing
     for more visit : http://girfahelp.blogspot.in/p/c-language.html
     ################################
*/
#include<stdio.h>
#include<conio.h>
int sr(int);
void main()

Factorial Number Flow Chart

Draw a flowchart to print the factorials of numbers from 1 to n, where n is entered by user


Factorial Number Flow Chart


Monday 23 January 2017

Write A program to input two number and check whether its is Twisted Twin Prime Number or not?

Q: Write A program to input two number and check whether its is Twisted Twin Prime Number or not?
Explanation : Two Number said to be twisted twin prime number if gap between given number is 2 and Prime, Reverse prime
Ex :  11-13

Solution :

/*   ################################
     Girfa Student Help
     Twisted Twin Prime number
     (11-13=11-31)
     for more visit : http://girfahelp.blogspot.in/p/c-language.html
     ##########################