Results 1 to 2 of 2

Thread: Print grouping of numbers in C

  1. #1
    CoxWatson is offline Senior Member
    Join Date
    Dec 2009
    Posts
    232
    Rep Power
    3

    Default Print grouping of numbers in C

    I trying to type C program to print the combination of given numbers but unable to get proper output. So please provide me some suggestions about this. Any help will be appreciated.

  2. #2
    BrooksGray is offline Senior Member
    Join Date
    Dec 2009
    Posts
    231
    Rep Power
    3

    Default

    Use code given below to print the Combination of numbers:

    Code:
    #include<stdio.h>
    Void main ()
    {
    int a1,b1,c1;
    for(a1=1;a1<4;a1++){
    for(b1=1;b1<4;b1++){
    for(c1=1;c1<4;c1++){
    if((a1! b1) && (b1! c1) && (a1! c1))
    {  printf(" %d%d%d n" a1,b1,c1);
    }}}}}

Similar Threads

  1. C code for print odd numbers and their average
    By Lily Chauchoin in forum Programming
    Replies: 2
    Last Post: 07-30-2010, 09:17 PM
  2. Write a code for to print grouping of numbers
    By CoxWatson in forum Software Jargons
    Replies: 2
    Last Post: 05-07-2010, 01:59 PM
  3. C# program to print random numbers
    By Garcíarobine in forum Programming
    Replies: 2
    Last Post: 01-13-2010, 05:47 PM
  4. Grouping of active application
    By Fred Morgan in forum Applications
    Replies: 0
    Last Post: 07-15-2009, 01:19 PM
  5. Grouping of other Admin RDP on a 2000 server
    By bio12 in forum Windows 7/2000/NT
    Replies: 1
    Last Post: 05-09-2009, 09:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48