User Profile

Collapse

Profile Sidebar

Collapse
rashmisn
rashmisn
Last Activity: Dec 1 '06, 01:15 PM
Joined: Nov 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rashmisn
    replied to Simple Program...
    in C
    hi manjiri
    thanks for your suggestion
    here it toring even and odd numbers in seperate arrays(ea and oa) and then i am sorting.
    See more | Go to post

    Leave a comment:


  • rashmisn
    replied to Simple Program...
    in C
    Code:
     //this programmay help you 
     
    #include<stdio.h>
    main()
    {
    int j=0,temp=0,ea[10],oa[10],i=0,e=0,o=0,n;
     
    for(i=0;i<10;i++)
    {
    printf("Enter number");
    scanf("%d",&n);
     
    if(n%2==0)
    ea[e++]=n;
    else
    oa[o++]=n;
    }
    if(e==0)
     
    printf("No Even numbers:\n");
    else
    {
    printf("Even numbers:\n");
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...