Write a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number is actually less than 100
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#include <iostream>
using namespace std;
int main()
{
int n;
do
{
cout<<"\nEnter Number: "; cin>>n;
}while(n<100);
return(0);
}
Comments
Leave a comment