Advertisement
2_2002-2004 Math #127021

Finds the Minimum number of 7 numbers

This program finds the Minimum number of 7 numbers entered.

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int i,num,min;
for(i=1;i<=7;i++)
{
cout<<"please enter a value #"<<i<<":";
cin>>num;
if (i==1)
min=num;
else
if(num<min)
min=num;
}
cout<<"the smallest number is :"<<min;
}

Upload
Původní komentáře (3)
Obnoveno z Wayback Machine