Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
Cin example
|
||||
|
||||
#include <iostream.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int number,highNumber;
|
||||
|
||||
cout<<"Please enter a whole number (ctrl q) to quit";
|
||||
while(cin>>number)
|
||||
{
|
||||
if(number > highNumber)
|
||||
highNumber = number;
|
||||
cout<<"Please enter a whole number (ctrl q) to quit";
|
||||
|
||||
}
|
||||
cout<<"High number is :"<<highNumber<<endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user