Guest User

Untitled

a guest
Oct 10th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5.     const int numbers = 10;
  6.     double value;
  7.     for(int i =0;i<numbers;i++)
  8.     {
  9.         std::cin >> value;
  10.         if(value*value < 100){
  11.             std::cout << "Value: " << value << ", square of value: "
  12.                 << value*value << std::endl;
  13.         }
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment