Thursday, June 20, 2019

ANSI C



'C' seems a strange  name for a programming language .but

 this strange sounding language  is one of the most popular computer languages today because it is a structure , high - level ,machine independent langu'age .
 It allows software developers to develop programs without worrying about the hardware platform where they will be implemented.
The root of all modern language is ALGOL, introduced int the  early 1960s, ALGOL was the first computer language to use  a block  structure .Although never became popular in USA, it was widly used in Europe . ALGOL gave the concept of structured programming to the computer science community . Computer  scientist like carrado bhom , guisepee jacopini and edsger dijkstra populized this concept during 1960 subsquently,several language were announced.
In 1960, Martin Richards develop  a language called BCPL (Basic combine programming  language ) primarily for writing system software.In 1970, Ken Thompson created a language using many feature s of BCPL and called it simply B. B by Dennis Ritchie at the Bell Laboratries in 1972 .C uses many concepts from these  languages and added the concept  of data types and other powerful features .

Sunday, February 24, 2019

Find odd no. in an arry

https://alotcoding.blogspot.com/2019/02/wap-to-print-all-even-no-in-array.htmlhttps://alotcoding.blogspot.com/2019/02/wap-to-print-all-even-no-in-array.html
https://alotcoding.blogspot.com/2019/02/program-of-array-will-recurse-all.html
/*...WAP to print all odd no. in an array...*/   


#include<stdio.h>
#include<conio.h>
void main()
{
  int arr[10],i;
  printf(" Enter any  10  number");
  for(i=0;i<10;i++)
  {
   scanf("\n %d",&arr[i]);
   }
   printf("\n All number are odd");
   for(i=0;i<10;i++)
   { 
    if(arr[i]%2!=0)
    {
     printf("\n %d",arr[i]);
     }
     }
     getch();
      }




in put:
1
2
3
4
5
6
7
8
9
10





out put:
2
4
6
8
10

Saturday, February 23, 2019

//Program of array find even number //

https://alotcoding.blogspot.com/2019/02/program-of-array-will-recurse-all.html

/*..Enter 10 no.,&find your even nu. ..*/ 

#include<stdio.h>
#include<conio.h>
void main()
{
  int arr[10],i;
  printf("Enter  any 10  values");
  for(i=0;i<10;i++)
  {
   scanf("\n %d",&arr[i]);
   }
    printf("\n All even no. are ");
   for(i=0;i<10;i++)
   {
   if(arr[i]%2==0)
   {
    printf("\n %d",arr[i]);
   }
   }
    getch();
    }


out put: 

2
34
23
45
43
56
34
32
6
8

Input:
2
34
56
34
32
6
8
                              By :Indra kumar

Program of Array will recurse all natural number

https://alotcoding.blogspot.com/2019/02/program-of-array-will-recurse-all.html


/*..Enter 10number All number will recurse..*/
   
#include<stdio.h>
#include<conio.h>
 void main()
 {
   int arr[10],i;
   printf("Enter any 10 Values");
   for(i=0;i<10;i++)
   {
    scanf("\n %d",&arr[i]);
    }
    printf("Value in recurse order: \n");
    for(i=0;i<10;i++)
    {
    printf("\n %d",arr[i]);
     }
     getch();
     }
    

Out put:                          
1
2
3
4
2
3
4
5
6
7
8
9
10
Input:
1
2
3
4
5
6
7
8
9
10 
                                                           By: indra kumar