You are not logged in. Please login at www.codechef.com to post your questions!

×

wrong answer due to output

include<iostream>

using namespace std; int main() { int a[5],i; for(i=0;i<5;i++) { cin>>a[i]; } cout<<endl; for(i=0;i<5;i++) { if(a[i]==42) break; cout<<a[i]<<endl; } } pls help!!

asked 06 Sep '14, 16:57

p2p2_3's gravatar image

0★p2p2_3
1
accept rate: 0%

toggle preview
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
  • mathemetical formulas in Latex between $ symbol

Question tags:

×22

question asked: 06 Sep '14, 16:57

question was seen: 422 times

last updated: 06 Sep '14, 16:57