এটা দ্বিমিক অনলাইন জাজের ৪নং প্রবলেম। নিচের কোডটি সাবমিট করলে রানটাইম এরর দেখাচ্ছে।

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

    scanf("%d",&n);

    for(i=1;i<=n;i++)
    {
        scanf("%d",&j[i]);           
    }

    for(i=1;i<=n;i++)
    {
        printf("Case %d: ",i);

        for(k=1;k<=j[i];k++)
        {
            if(j[i]%k==0)
            {
                printf("%d ",k);   
            }
        }  
        if(i!=n)
        {
            printf("\b\n");
        }
        else
        {
            printf("\b");
        }
    }    
    return 0;
}

asked 29 May, 19:22

the%20catalyst's gravatar image

the catalyst
1138

edited 30 May, 09:08

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
1.1k18

সমস্যার লিঙ্ক এড করেন তাহলে সমাধান দিতে সুবিধা হবে ।

(20 Jun, 04:03) menon
Be the first one to answer this question!
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
×55
×7
×6
×1

question asked: 29 May, 19:22

question was seen: 317 times

last updated: 20 Jun, 04:03