Welcome to AMIE Study - AMIE India Students Forum

AMIE Study - AMIE India Students Forum

collapse collapse

* Shoutbox

Refresh History
  • Amal Babu: Is there any changes in syllabus
    February 12, 2019, 06:17:52 PM
  • bhoomika Praveena: any whatsapp group? kindly add me ,mail me to [email protected] your number i shall ping you thanks
    February 01, 2019, 07:36:26 PM
  • bhoomika Praveena: hi,
    February 01, 2019, 07:33:15 PM
  • Sitigaurav: Section A note required
    January 13, 2019, 03:12:13 PM
  • Ulo3091: Please send doc file of project report someone
    December 29, 2018, 05:36:05 PM
  • Sujith Raj (AMIE - Civil): Any Idea, When will we get AMIE certificate & AM number
    December 20, 2018, 04:30:22 PM
  • Sujith Raj (AMIE - Civil): Congratulation to All those who cleared AMIE in recent result
    December 20, 2018, 04:29:40 PM
  • sulemangani: Can I reresisyered for section B exam as I have passed section A in winter 2008 but not appeared in some exams upto winter 2014
    December 12, 2018, 06:59:49 PM
  • I P Sarath Menon: Rcc , steel, advance structural analysis, design and analysis, soil, water hand written notes which was used to successfully complete AMIE [email protected]/9387774349
    November 28, 2018, 09:37:56 AM
  • I P Sarath Menon: Civil Engineering notes with optional structural with me
    November 28, 2018, 09:33:52 AM
  • ST694011-6: Hi everyone how to get RCC notes
    November 28, 2018, 09:17:25 AM
  • rekha1996: dbms
    November 27, 2018, 05:58:47 PM
  • rekha1996: Dbms
    November 27, 2018, 04:52:21 PM
  • Anwar VYM: Is AMIE degree acceptable in UAE?
    October 23, 2018, 10:16:46 PM
  • devjangde: Dear Sir/Madam please me out for my membership Number and  reference number.  I lost both of this . Is there any way to find out?
    October 08, 2018, 09:32:50 AM
  • devjangde: Dear Sir/Madam,
    October 08, 2018, 09:30:46 AM
  • Srijib: Can someone have any notes for the subject society and environment
    October 07, 2018, 07:37:52 PM
  • muleredd: can someone have previous year question papers for Sec B Mining Engineering ?
    October 07, 2018, 01:52:05 PM
  • Pahadi57: Will I send the printed copy of the winter application form after online form filling successfully.... Pls advice
    October 05, 2018, 05:54:03 PM
  • SANUKARMAKAR1: Section A society and environment and computing and informatics not required .
    October 04, 2018, 03:19:43 PM

* Search


* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Board Stats

  • stats Total Members: 48805
  • stats Total Posts: 27371
  • stats Total Topics: 6635
  • stats Total Categories: 6
  • stats Total Boards: 31
  • stats Most Online: 626

Author Topic: PROGRAM TO FIND OUT WHETHER THE GIVEN NUMBER IS PRIME OR NOT  (Read 1202 times)

Description:
March 18, 2009, 04:28:52 PM
  • phpBB Moderator
  • Registered User
  • *
  • Posts: 56
    • View Profile
    • http://sites.google.com/a/daffodildb.com/study/Home
Advertisement
Code: [Select]
   
/* PROGRAM TO FIND OUT WHETHER THE GIVEN NUMBER IS PRIME OR NOT PRIME*/
     /* author-Rohit Wadhwa*/
     #include<stdio.h>
     #include<conio.h>
     void  main()
    {
    int n;
    int val;
    int i=2;
    int flag=1;
    printf("Enter a number Check for Prime or not prime:n");
    scanf("%d",&n);
    while(i<n)
    {
if(n%i==0) /*also there is a  2nd algo only replace with this if((n/2)%i==0)*/
        {
flag=0;
break;
}
i++;
    }
    if(flag==1)
     printf("%d is a prime number",n);
     else
     printf("%d is  not a prime number",n);
    getch();
    }
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »


Thanks
Rohit Wadhwa
Site : Study Site
March 19, 2009, 07:51:33 AM
Reply #1
  • AMIE Forum Advisor
  • Senior Member
  • **
  • Posts: 820
    • View Profile
Thanks rohit for sharing Programming with us .
I would like to request u that can u make word document of all programms which u r having & send it to mail ID.we will upload it in FTP.It will be easier for all to refer.
Please if u can.
Komal
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
Komal Maskariya
AMIE (Chemical Engg)
Chartered Engineering, India
AMIE study notes
Excellence Academy
March 19, 2009, 08:29:59 AM
Reply #2
  • phpBB Moderator
  • Registered User
  • *
  • Posts: 56
    • View Profile
    • http://sites.google.com/a/daffodildb.com/study/Home
ok i am also include some program posted by parveen sir ,
actually i am make a document today( Wednesday ).
 i am share a Google Doc with you and update it time 2 time,
Wednesday i have some time so i make some program and post here!

so in my Google doc you find same program! if i have update i tell you

i am sharing with you ok!
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
Thanks
Rohit Wadhwa
Site : Study Site
March 19, 2009, 09:28:23 AM
Reply #3
  • phpBB Moderator
  • Registered User
  • *
  • Posts: 56
    • View Profile
    • http://sites.google.com/a/daffodildb.com/study/Home
As per your request, i send the docs to you
pls collect it.
And i am able to download the question paper but for reading, i have no password so please provide me the password as soon as possible .
Thanks in advance
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
Thanks
Rohit Wadhwa
Site : Study Site
March 19, 2009, 11:24:53 AM
Reply #4
  • Administrator
  • Senior Member
  • *****
  • Posts: 2173
  • Luck is for lazies, success is for who work hard
    • View Profile
    • AMIE Online Coaching
hI Rohit,
You can post programs as you posted in this topic, The category "Some Sample Programs " is only for discussing about the programs. so no problem just you can copy paste here..

Password has been provided with the post itself. check the post again. let me know if you have any password issue..

Thanks
Praveen
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
Praveen
AMIE Study
March 19, 2009, 01:14:51 PM
Reply #5
  • AMIE Forum Advisor
  • Senior Member
  • **
  • Posts: 820
    • View Profile
Praveen/Rohit,
Praveen ,it will be easier for the reader if it is in one document.
Anyway rohit u can post it whatever way u feel ok .

Komal
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
Komal Maskariya
AMIE (Chemical Engg)
Chartered Engineering, India
AMIE study notes
Excellence Academy
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
648 Views
Last post March 18, 2009, 03:48:16 PM
by rohit.wadhwa
1 Replies
4484 Views
Last post November 28, 2011, 07:18:22 PM
by praveen
3 Replies
1306 Views
Last post February 07, 2011, 10:39:55 AM
by shitalbshinde
0 Replies
896 Views
Last post September 15, 2012, 04:48:54 PM
by jitu_12341
1 Replies
1038 Views
Last post January 07, 2013, 08:01:52 PM
by spganeshk
1 Replies
1059 Views
Last post January 07, 2013, 08:04:00 PM
by spganeshk
0 Replies
661 Views
Last post January 27, 2013, 08:40:28 PM
by arya

* Search

* Subscribe to Forum

Enter your email address:

Advertisement

* Recent Posts

Solid Wood Dining Table Set Uk by alvisys
[January 30, 2019, 04:58:57 PM]


Re: Important!!! AMIE Exam fee revised from Rs 2000 to Rs 3000 by JessicaThisk
[January 09, 2019, 06:30:22 PM]


Re: Important!!! AMIE Exam fee revised from Rs 2000 to Rs 3000 by sulemangani
[December 12, 2018, 07:01:18 PM]


DiesqueLW by uncopy
[November 06, 2018, 08:47:00 PM]


Re: Supermembership queries by praveen
[November 04, 2018, 09:39:26 AM]