#include <iostream>
#include <stdio.h>
using namespace std;
main(void)
{
int i;
char str[80];
cout << "I like Turbo C++.\n";
printf("You can use printf(), but most C++ programs don't.\n");
cout << "enter a number: ";
cin >> i;
cout << "your number is " << i << "\n";
cout << "enter a string: ";
cin >> str;
cout << str;
return 0;
}
|