No products in the cart.

Write the c++ program that input …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write the c++ program that input 10 numbers and find out the smallest among them
  • 1 answers

Kritika Trehan 7 years ago

<pre> <code><dfn>#include <iostream></dfn> <var>using</var> <var>namespace</var> std; <var>void</var> main () { <var>int</var> max=0,num,min=0; <var>for</var> (<var>int</var> i=0; num!=-1; i++) { cout<<<kbd>"Enter the number <-1 to end input> "</kbd>; cin>>num; <var>if</var> (num>max) max=num; <var>if</var> (num<min) min=num; } cout<<<kbd>"largest number is: "</kbd><<max << endl; cout<<<kbd>"smallest number is: "</kbd><<min << endl; }</code></pre>
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers
What is mean by buffering in file handling?
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App