#include <iostream>
using namespace std;
int main(){
float i = 0;
float j = 1;
for(;i <= 2.1;){
cout << "I=" << i << " " << "J=" << j+i << "\n";
cout << "I=" << i << " " << "J=" << j+1+i << "\n";
cout << "I=" << i << " " << "J=" << j+2+i << "\n";
i+= 0.2;
}
return 0;
}
using namespace std;
int main(){
float i = 0;
float j = 1;
for(;i <= 2.1;){
cout << "I=" << i << " " << "J=" << j+i << "\n";
cout << "I=" << i << " " << "J=" << j+1+i << "\n";
cout << "I=" << i << " " << "J=" << j+2+i << "\n";
i+= 0.2;
}
return 0;
}
No comments:
Post a Comment