fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std ;
  4.  
  5. int main() {
  6. string name = "Juan Dela Cruz" ;
  7. int age = 20 ;
  8. double gpa = 89.5 ;
  9.  
  10. cout <<"My name is " << name
  11. <<", I am " << age
  12. <<" years old, and my GPA is "
  13. << gpa <<"." << endl ;
  14.  
  15. return 0 ;
  16. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
My name is Juan Dela Cruz, I am 20 years old, and my GPA is 89.5.