Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string name;
- getline(cin, name);
- int age;
- cin >> age;
- double grade;
- cin >> grade;
- printf("Name: %s, Age: %i, Grade: %.2f", name.c_str(), age, grade);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement