Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

not getting any error in codeblock ,but my code is not accepted

$
0
0
#include<stdio.h>
int main()
{
int n,a[10],i;
puts("enter the range");
scanf("%d",&n);
puts("enter the numbers");
for(i=0;i<n;i++)
{
    scanf("%d",&a[i]);
}
puts("the nos. are");
for(i=0;i<n;i++)
{
    if(a[i]==42)
        break;
    printf(" %d\n",a[i]);
}
return 0;

}

Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>