Thread: Lcm And Lcf

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Lcm And Lcf


    Plz anyone can mail me the c code for above program

    Comments on this post

    • Jacques1 disagrees : When you're too lazy or stupid to even steal code from the Internet, there's something wrong with you.
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,417
    Rep Power
    1871
    > Plz anyone can mail me the c code for above program
    Can you post the email address of your tutor?

    We may as well cut out the middle-man offering no value added service :p
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    156
    Rep Power
    34
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    I'm in one of those helping moods...
    Code:
    #include <stdio.h>
    
    typedef struct {
        int ch;
        int count;
    } star_t;
    
    int main(void) {
        star_t foo[] = {
    {32, 4}, {95, 8}, {32, 3}, {95, 2}, {32, 4}, {95, 2}, {32, 4}, {95, 7}, {32, 3}, {95, 2}, {32, 4}, {95, 2}, {'\n', 1}, 
    {32, 3}, {124, 1}, {9, 1}, {32, 4}, {124, 1}, {32, 1}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {47, 1}, {9, 1}, {32, 2}, {124, 1}, {32, 1}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {47, 1}, {32, 2}, {47, 1}, {'\n', 1}, 
    {32, 3}, {124, 1}, {32, 2}, {45, 6}, {39, 1}, {32, 1}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 3}, {95, 4}, {124, 1}, {32, 1}, {124, 1}, {32, 2}, {124, 1}, {32, 1}, {47, 1}, {32, 2}, {47, 1}, {'\n', 1}, 
    {32, 3}, {124, 1}, {32, 2}, {124, 1}, {95, 3}, {32, 4}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {9, 1}, {32, 4}, {124, 1}, {32, 2}, {124, 1}, {47, 1}, {32, 2}, {47, 1}, {'\n', 1}, 
    {32, 3}, {124, 1}, {32, 3}, {95, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {9, 1}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {47, 1}, {'\n', 1}, 
    {32, 3}, {124, 1}, {32, 2}, {124, 1}, {32, 7}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {32, 2}, {124, 1}, {95, 4}, {32, 2}, {124, 1}, {9, 1}, {32, 2}, {92, 1}, {'\n', 1}, 
    {32, 3}, {124, 1}, {32, 2}, {124, 1}, {32, 7}, {124, 1}, {32, 3}, {45, 2}, {32, 3}, {124, 1}, {32, 2}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {32, 1}, {124, 1}, {32, 2}, {124, 1}, {92, 1}, {32, 2}, {92, 1}, {'\n', 1}, 
    {32, 3}, {124, 1}, {95, 2}, {124, 1}, {32, 7}, {92, 1}, {95, 8}, {47, 1}, {32, 3}, {92, 1}, {95, 6}, {124, 1}, {32, 1}, {124, 1}, {95, 2}, {124, 1}, {32, 1}, {92, 1}, {95, 2}, {92, 1}, {'\n', 1}, 
    {'\n', 1}, 
    {9, 4}, {32, 5}, {95, 5}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 2}, {9, 1}, {32, 1}, {124, 2}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {92, 1}, {95, 3}, {47, 1}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 4}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 3}, {32, 7}, {95, 5}, {124, 1}, {60, 1}, {45, 3}, {62, 1}, {124, 1}, {95, 5}, {'\n', 1}, 
    {9, 3}, {32, 6}, {47, 1}, {32, 5}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {9, 1}, {92, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {47, 1}, {32, 4}, {124, 1}, {32, 5}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {9, 1}, {124, 1}, {32, 1}, {92, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {124, 1}, {32, 4}, {124, 1}, {32, 5}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {9, 1}, {124, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {124, 1}, {32, 4}, {124, 1}, {32, 5}, {124, 1}, {9, 1}, {32, 2}, {124, 1}, {9, 1}, {124, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {124, 1}, {9, 3}, {124, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {124, 1}, {9, 3}, {124, 1}, {32, 2}, {124, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {124, 1}, {9, 3}, {32, 2}, {47, 1}, {'\n', 1}, 
    {9, 3}, {32, 1}, {124, 1}, {9, 3}, {32, 1}, {47, 1}, {'\n', 1}, 
    {9, 3}, {32, 2}, {92, 1}, {9, 2}, {32, 7}, {47, 1}, {'\n', 1}, 
    {9, 3}, {32, 3}, {92, 1}, {9, 2}, {32, 6}, {47, 1}, {'\n', 1}, 
    {9, 3}, {32, 4}, {124, 1}, {9, 2}, {32, 6}, {124, 1}, {'\n', 1}, 
    {9, 3}, {32, 4}, {124, 1}, {9, 2}, {32, 6}, {124, 1}, {'\n', 1}, 
    {'\n', 1}, 
    {9, 4}, {32, 5}, {95, 4}, {32, 5}, {95, 4}, {32, 2}, {95, 9}, {9, 1}, {95, 3}, {9, 1}, {95, 3}, {'\n', 1}, 
    {9, 4}, {32, 5}, {92, 1}, {9, 1}, {32, 1}, {92, 1}, {32, 3}, {47, 1}, {9, 1}, {32, 1}, {47, 1}, {32, 1}, {47, 1}, {9, 1}, {32, 5}, {92, 1}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 6}, {92, 1}, {32, 3}, {92, 1}, {32, 1}, {47, 1}, {9, 1}, {47, 1}, {32, 2}, {124, 1}, {32, 2}, {95, 5}, {32, 2}, {124, 1}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 4}, {32, 7}, {92, 1}, {32, 7}, {47, 1}, {32, 3}, {124, 1}, {32, 1}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {32, 1}, {124, 1}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 5}, {92, 1}, {32, 5}, {47, 1}, {32, 4}, {124, 1}, {32, 1}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {32, 1}, {124, 1}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 5}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {32, 1}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {32, 1}, {124, 1}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 5}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {32, 1}, {124, 1}, {95, 5}, {124, 1}, {32, 1}, {124, 1}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {95, 3}, {124, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 5}, {32, 1}, {124, 1}, {32, 3}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {9, 1}, {32, 5}, {124, 1}, {32, 1}, {124, 1}, {9, 1}, {32, 3}, {124, 1}, {'\n', 1}, 
    {9, 5}, {32, 1}, {124, 1}, {95, 3}, {124, 1}, {9, 1}, {32, 3}, {92, 1}, {95, 9}, {47, 1}, {32, 1}, {92, 1}, {95, 11}, {47, 1}, {'\n', 1}, 
    
    
        };
        int i, j;
        for (i = 0; i < sizeof(foo) / sizeof(foo[0]); i++) {
            star_t bar = foo[i];
            for (j = 0; j < bar.count; j++) {
                printf("%c", (char)bar.ch);
            }
        }
        return 0;
    }
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo