User Profile

Collapse

Profile Sidebar

Collapse
ashishjigar
ashishjigar
Last Activity: Nov 24 '06, 11:55 AM
Joined: Nov 10 '06
Location: haldwani
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ashishjigar
    replied to Prime Number!! Emergency
    in C
    i will help u out

    #include<stdio. h>
    #include<conio. h>
    main()
    {
    int i,p=0,j;
    for(i=1;i<=100; i++)
    for(j=1;j<=i;j+ +)
    {
    if(i%j==0)
    p++;
    }
    if(p==2)
    printf("%d",i);
    p=0;
    }
    getch();
    }...
    See more | Go to post

    Leave a comment:


  • ashishjigar
    replied to New to programming
    in C
    as u r a brand new perseon in this field u need to have a compiler which has a complete reference in it to help the new ones. so u better use turboc3 compiler....
    See more | Go to post

    Leave a comment:


  • ashishjigar
    replied to I don't understand arrays...please help
    in C
    arrays actually are a collection of data. that is u do not need to enter the data again and again. when u define an array it occupies some space in the memory. u can call them memory cells. lets see it with an example. suppose u wrote int arr1[10], that means that your variable arr1 has occupied 10 memory locations in the memory. when u enter data in the array or want to get the output from the array u use looping in order to accomplish this job...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...