Welcome to AMIE Study - AMIE India Students Forum

AMIE Study - AMIE India Students Forum

collapse collapse

* Shoutbox

Refresh History
  • 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
  • pravendrapmmb: Where to get books for section B Electrical Engineering
    October 02, 2018, 10:23:23 PM
  • rodricksarthur: Sum 2018 results, Mining Engineering Sec B, MN435 result is not declared. Any one of you, know why?
    September 28, 2018, 08:59:53 AM
  • divakara.sd: Dear sir/Madam I am Divakar, Study under IEI in M and M branch. Recently I am registered for section B I quired the study notes and Questions papares for fallowing subject.  IC402- ENGINEERING MANAGEMENT MM403- METALLURGICAL THERMODYANAMIC AND KENETICS MM404-EXTRACTIVE METALLURGY MM405-MECHANICAL BEHAVIOUR OF MATERIALS MM406-PHYSICAL METALLURGY MM407-METALLURGICAL DESIGN MM432-WELDING AND ALLIED PROCESS MM433-ADVANCED PHYSICAL METALLURGY MM434-FOUNDRY ENGINEERING   Thanks and regards Mr.Divakar State-Karnataka District-Bellary Place-Emmiganure Pin code-538113 Phone number-9743956204
    September 24, 2018, 11:48:09 PM
  • Anu Mangalore: Section b mechanical notes required
    September 21, 2018, 09:37:37 PM
  • AjeetIOCL: can u tell me ,my AMIE registration is of 2010 which has expired in 2016 ,I have Re-registered again in 2018 by re-registration process .is my date of election will be changed or remain same.is this degree of AMIE will be Valid? because Supreme Court has decided not to consider AMIE degree after May 2013
    September 20, 2018, 08:59:06 PM
  • jooly: is data structure in CS is tough?do we need to learn C program thouroughly for it?
    September 11, 2018, 09:33:03 AM
  • Manish100ni: I got AAAD grade in section A , i am pass or fail ??
    August 19, 2018, 05:02:34 AM
  • [email protected]: Can anyone tell if Saudi Engineers Council accept  AMiE or not?
    July 18, 2018, 11:38:24 AM
  • Khadeejath Shamna: Can we send section b registration form and examination form together?  When can we register for section b winter exam 2018?
    July 09, 2018, 03:46:15 PM
  • GCPATIL: How to change mobile number and email address
    July 09, 2018, 01:33:10 AM
  • Sanoj.kaushik: Hi everyone, It is informed that civil lab experiments at Manav Rachna Institute would be started in mid july. So, kindly informed to other friends.
    June 15, 2018, 05:33:15 PM
  • ramajit: yes. i also need help for project work. any format or ref available. pls send me email [email protected]
    June 12, 2018, 10:22:21 AM
  • JYOTI VERMA: mail me on [email protected]
    June 10, 2018, 09:33:12 PM
  • JYOTI VERMA: i wqnt to know about mechanical project work topiics.please send me it on my mail if any one have
    June 10, 2018, 09:32:34 PM

* Search


* User Info

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

* Board Stats

  • stats Total Members: 48705
  • stats Total Posts: 27337
  • stats Total Topics: 6606
  • 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 1121 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: 2172
  • 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
604 Views
Last post March 18, 2009, 03:48:16 PM
by rohit.wadhwa
1 Replies
4409 Views
Last post November 28, 2011, 07:18:22 PM
by praveen
3 Replies
1174 Views
Last post February 07, 2011, 10:39:55 AM
by shitalbshinde
0 Replies
857 Views
Last post September 15, 2012, 04:48:54 PM
by jitu_12341
1 Replies
931 Views
Last post January 07, 2013, 08:01:52 PM
by spganeshk
1 Replies
978 Views
Last post January 07, 2013, 08:04:00 PM
by spganeshk
0 Replies
626 Views
Last post January 27, 2013, 08:40:28 PM
by arya

* Search

* Subscribe to Forum

Enter your email address:

Advertisement

* Recent Posts

Re: making whatsapp group by ganesan5450
[October 12, 2018, 02:40:35 PM]


Re: making whatsapp group by AJEEBHAMSA
[October 11, 2018, 12:58:09 PM]


Re: making whatsapp group by aditya_bhushan
[October 10, 2018, 07:18:40 PM]


Re: Mining Engineering by muleredd
[October 07, 2018, 02:16:55 PM]


Solid Wood Dining Table Set by bellianawil
[October 06, 2018, 05:18:26 PM]