Upload
hallred34
View
5
Download
0
Embed Size (px)
DESCRIPTION
source code
Citation preview
# include <iostream># include <fstream>using namespace std;
int main (){
ifstream inputfile;int a, b, c;
inputfile.open("foo.in");
inputfile >> a;inputfile >> b;inputfile >> c;
ofstream outputfile;outputfile.open("foo.out");
outputfile << c;outputfile << b;outputfile << a;
inputfile.close();outputfile.close();
return 0;}
# include <iostream>using namespace std;
int main (){
int age; cout << "Enter your age "; cin >> age;if (( age >= 0) && ( age <= 125)) { }else{
cout << "The value must be between 0 and 125";}return 0;
}