basicio - cin >> a; cout << "You entered...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// basicio.cpp #include<iostream.h> # int main() { int i; float a; char c; cout << "Enter a number between 1 and 100: "; cin >> i; cout << "You entered " << i << '\n'; cout << "Enter the most recent unleaded gas price you have seen: $";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin >> a; cout << "You entered " << a << '\n'; cout << "Enter the first letter of your last name: "; cin >> c; cout << "You entered " << c << '\n'; return 0; }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online