Advertisement
C_Volume2 Math #81330

Finds the Minimum number of 7 numbers

This program finds the Minimum number of 7 numbers entered.

AI

KI-Zusammenfassung: 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.

Quellcode
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
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine