// Loop Example !!.cpp : Defines the entry point for the console application. // #include "stdafx.h"// string class #include "iostream"// string class using std ::cout;// the function you call out from the library ("iostream") this function display out put using std ::cin; // the function you call out from the library ('iostream") this function storage info from user using std ::endl;// function you call out from the library(iostream) this function endl the statement int main()// main body { //barcket for the processing body (open) int one = 0;//interger the name of the storage in the memory int option = 0; // the name of the storage in the memory while (option >=0)// looping function {// open bracket cout << " Enter number:"; cin >>one;// prompt the user to enter a number cout << " number:"<<one<<endl;// output cout << " 1. try again / -1 exit: "; cin>> option;// loop menu }//close bracket return 0;//exit }// bracket for the processing body (close)
*** MOD EDIT: Added code tags. Please
