Thread: Need a help in C program

  1. #1
    Registered User
    Join Date
    Feb 2015
    Location
    Colombo
    Posts
    1

    Unhappy Need a help in C program

    I need a easy way to do this.can Any one give me a sourse code to this problem in C

    A number is special, if it is exactly divisible by 15. A number is big, if it is greater than 999. A number is
    weird, if it is exactly divisible by 5 and 6 but not 18. A number is scary if it is big or weird.
    Write a c program to test a given number.

    For example:


    Enter a number: 450
    450 is special but not scary.


    Enter a number: 750
    750 is special, weird and scary but not big.

  2. #2
    Registered User
    Join Date
    Nov 2014
    Posts
    45
    If you inspect forum, you must know, nobody doesn't give some codes. Your question is really easy. Please, study. You can do it !

  3. #3
    Registered User
    Join Date
    Feb 2013
    Location
    Sweden
    Posts
    89
    Quote Originally Posted by lakshi View Post
    I need a easy way to do this.can Any one give me a sourse code to this problem in C

    A number is special, if it is exactly divisible by 15. A number is big, if it is greater than 999. A number is
    weird, if it is exactly divisible by 5 and 6 but not 18. A number is scary if it is big or weird.
    Write a c program to test a given number.

    For example:


    Enter a number: 450
    450 is special but not scary.


    Enter a number: 750
    750 is special, weird and scary but not big.
    What did you come up with so far?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-09-2014, 02:36 PM
  2. Replies: 2
    Last Post: 12-11-2012, 12:25 AM
  3. Replies: 1
    Last Post: 03-03-2009, 04:47 PM
  4. Replies: 5
    Last Post: 08-16-2007, 11:43 PM
  5. Replies: 18
    Last Post: 11-13-2006, 01:11 PM

Tags for this Thread