Thursday 27 October 2016

IF statement : C Language

If-Else

Conditional operator

Before start writing something about this post I want to ask you a question.

Is computer IQ is greater than human?

What is your answer Yes/NO?

Answer

Computer IQ is zero. If IQ is zero then how can computer work smartly and take decision like human.

It is possible of IF statement which enable your computer to make decision. That is why every programming language support if-else statement.

Syntax

If(condition)
{
                If condition is true
                Then this part will be run
}
Else
{
                If condition is false
                Then this part will be run
}

Wednesday 26 October 2016

HTML : Text Layout


Text Layout

Text layout defines position of text on a webpage. For make any matter or text effective we use many things like
  • New line
  • Paragraph
  • Space
  • Tab

Tuesday 25 October 2016

Write a program to print only consecutive number of an array?

Q : Write a program to print only consecutive number of an array?

Answer:  : 


/*  ###################################
         Girfa : Student Help
         Consecutive Number
         For More Program Visit : http://girfahelp.blogspot.in/2012/09/some-program-of-c-language.html
    ###################################
*/
#include<stdio.h>
#include<conio.h>
void main()
{
    int ar[5],i;
    clrscr();
    for(i=0;i<5;i++)
    {
         printf("Enter %d position number>> ",i+1);
         scanf("%d",&ar[i]);
    }
    printf("\n\tOriginal Array\n");
    for(i=0;i<5;i++)
         printf("\t%d",ar[i]);
    printf("\n\tConsecutive Number\n");
    for(i=0;i<5;i++)

Monday 24 October 2016

January, 2014 A8-R4: BASICS OF OS, UNIX AND SHELL PROGRAMMING

 January, 2014
A8-R4: BASICS OF OS, UNIX AND SHELL PROGRAMMING

PART ONE
(Answer all the questions)


1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)
1.1 The nature of open source software
A) Software and source code available to all
B) The freedom to distribute software and source code
C) The ability to modify and create derived works
D) All of the above
1.2 Runlevel 6 is reserved for
A) Shutdown
B) Very basic commands
C) Reboot
D) Starting most of the machines services