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