Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple C++ code
Message
De
24/09/2004 15:31:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Simple C++ code
Divers
Thread ID:
00945858
Message ID:
00945858
Vues:
50
hi all,

i need help simple c++,

to insert any number form 1 to 9999999....

i want to give a message as
"do you want another operation" if yes return,else "no" exit.
i try with this code under,
# include <iostream.h>
int a;
void main(){
	for(int x=1;x<=10;x++){
	cout<<"ENTER YOUR NUMBER"<<"\t";
 	cin>>a;
	a=x*x;
	cout<<"\t"<<a;
	cout<<endl;

}
}
thanks.
Répondre
Fil
Voir

Click here to load this message in the networking platform