Advertisement
xlujiax

cin cout

Aug 31st, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <cstdlib>
  4. #include <iomanip>
  5.  
  6. using namespace std;
  7.  
  8. int main(){
  9.     int n, n2, n3, aux;
  10.     float real;
  11.     char c;
  12.     n = 100; n2 = 1000; n3 = 10000;
  13.     real = 123.4567;
  14.     aux = 0;
  15.     aux = (cin  real )
  16.     cin >> real >> n >> n2;
  17.     scanf("%f %d %d", &real, &n, &n2);
  18.     cout << "El valor de n es " << setw(6) << real << "\n";
  19.     cout << "Los valores enteros son " << n << " "<< n2 << endl;
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement