দ্বিমিক অনলাইন জাজের ৪নং প্রবলেম। রং আনসার দেখাচ্ছে কেন?

#include<stdio.h>
int main()
{
    int i,j,n,k,t;

    scanf("%d",&t);

    for(i=1;i<=t;i++)
    {
        scanf("%d",&n);

        printf("case %d: ",i);

        for(k=1;k<=n;k++)
        {
            if(n%k==0)
            {
                printf("%d",k);

                if(k<n)
                {
                    printf(" ");
                }
            }
        }
        printf("\n");
    }
    return 0;
}

asked 27 May, 04:45

the%20catalyst's gravatar image

the catalyst
1138

edited 27 May, 12:35

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
1.1k18


printf("case %d: ", i); এখানে case-এর প্রথম অক্ষর বড় হাতের হবে (Case)।

permanent link

answered 27 May, 12:40

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
1.1k18

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×418
×16
×7
×2

question asked: 27 May, 04:45

question was seen: 219 times

last updated: 27 May, 12:40