Thread: I am new in C programming language .so i am confused how can i write this kind of pro

  1. #1
    Registered User
    Join Date
    Nov 2017
    Posts
    22

    I am new in C programming language .so i am confused how can i write this kind of pro

    I am new in C programming language .so i am confused how can i write this kind of program:
    storing 10 number into one/two dimensional array & Print Only Prime Number by using c programming Language and how can i build this logic for programming Implement.
    Last edited by md_nayeem; 11-12-2017 at 07:37 AM.

  2. #2
    Registered User
    Join Date
    Jun 2017
    Posts
    156
    First you need to read the numbers into your array.
    To print the prime numbers you need to iterate through all the numbers in the array and if the number is prime then print it.
    About arrays:
    Arrays in C
    To check if a number is prime there should be tons of examples Google will find one for you

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Importance of english language in programming language
    By Lea Pi in forum General Discussions
    Replies: 10
    Last Post: 04-17-2015, 07:43 AM
  2. New to programming (of any kind)
    By oblaq in forum C++ Programming
    Replies: 16
    Last Post: 08-05-2012, 02:12 AM
  3. What's the Difference Between a Programming Language and a Scripting Language?
    By Krak in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 07-15-2005, 04:46 PM
  4. What kind of program should I write?
    By Ken.com in forum C Programming
    Replies: 6
    Last Post: 11-17-2003, 07:55 PM
  5. Q about most used prog. language in C++! Confused?
    By actionbasti in forum Game Programming
    Replies: 3
    Last Post: 09-16-2003, 07:42 PM

Tags for this Thread