Testing.

Thursday, 29 December 2016

C programming language: C program to divide a number (mathematics operation).


// Normal program
#include<stdio.h>
#include<conio.h>
void main()
{
int a=40,b=2;
printf("Result: =%d",a/b);
getch();
}

output:-20

//Ask numbers from user to divide
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
float c;
printf("\n Enter Number: ");
scanf("%d %d",&a,&b);
c=a/b;
printf("Result: =%f",c);
getch();
}



Wednesday, 28 December 2016

C progamming language: C program to Multiply to numbers (Mathematics operation).

//Normal program
#include<stdio.h>
#include<conio.h>
void main()
{
int a=20,b=10;
printf("%d",a*b);
getch();
}

outout:200

//Ask numbers from user to Multiply
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter No to multiply: ");
scanf("%d %d",&a,&b);
c=a*b;
printf("Multiplication Result= %d",c);
getch();
}


C programming language: C program to subtract two numbers (Mathematics operation).

//Normal program
#include<stdio.h>
#include<conio.h>
void main()
{
int a=20,b=10;
printf("%d",a-b);
getch();
}

output:- 10

//Ask number from user to Subtract
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter No to subtract: ");
scanf("%d %d",&a,&b);
c=a-b;
printf("Subtraction= %d",c);
getch();
}





Tuesday, 27 December 2016

C progarmming language: C program to add two numbers (Mathematics operation).

//Normal program
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=30;
printf("%d",a+b);
getch();
}

output:- 40

//Ask number from user to add

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c=0;
printf("Enter No to add: ");
scanf("%d %d",&a,&b);
c=a+b;
printf("%d + %d= %d",a,b,c);
getch();
}




Monday, 26 December 2016

C progammimg langauge: What is software and types of software?

A Software can be defined at two standards:-

        1.As per industrial standard,
      2.As per programmer standard.

 1.As per industrial standard:-
           #  As per the industrial standard digitized automated process is called software.
              Digitized =>Provides GUI.
          #when the software is providing GUI then it is called digitized, without human interaction the process is completed then it is called automated system.

 2.As per programmer standard:-
# A software is collection of programs.
# A program is a set of instructions which is design for particular task.
# N numbers of program combining together like a single unit it is called software tool or s/w component.
Advantages of software:
Generally software provides so many advantages but among of those following three are very important:-
            a. Performance
            b. Security and
            c. Any time access.

Software classified into two types:-
    1. System software.
    2. Application software.

1.System software:-
    When we are developing a software for general purpose which doesn’t having any limitations it is called system s/w.

System s/w are classified into three types:
         aOperating system:
                     Example: DOS, WINDOWS, UNIX, LINUX.
         b.Translator
                     Example: COMPILER, INTERPRETER.
         c. Packages
                    Example: LINKER, LOADER, EDITOR.

 2.Application software:-
       When we are developing an s/w for specific task only then it  is called application s/w.

       Always application s/w having limited task only i.e. for one  purpose we developed same purpose we required to use.

       Client specific projects all are application s/w only.

Application s/w are classified into two types:
    a. Application packages
         Example: MS office, ORACLE.
MS office is a Microsoft product which maintain the information in the form of documents, And
ORACLE is a database which maintain the information in the form of table.

    b. Special purpose software.
                Example: TALLY.
By using tally we can maintain accounts related information.







C progamming language: My first c program

#include<stdio.h>
#include<conio.h>
void main()
{
printf("IT IS MY FIRST C PROGRAM ");
getch();
}

output: IT IS MY FIRST C PROGRAM