Advertisement
Andrey_99_cska

3.III.4

Oct 24th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int main (){
  5. for (int i=25; i<=35; i+=1){
  6.         cout<<i<<' '<<i+0.5<<' '<<i-0.2<<endl;}
  7. return 0;
  8. }
  9.  
  10. #include <iostream>
  11. #include <math.h>
  12. using namespace std;
  13. int main (){
  14.     int i=25;
  15. while ( i<=35){
  16.         cout<<i<<' '<<i+0.5<<' '<<i-0.2<<endl;
  17.         i=i+1;}
  18.         i = 25;
  19.         do {
  20.             cout<<i<<' '<<i+0.5<<' '<<i-0.2<<endl;
  21.         i=i+1;
  22.         }
  23.         while (i <= 35);
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement