fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char name[50] = "Juan Dela Cruz" ;
  5. int age = 20 ;
  6. float gpa = 89.5 ;
  7.  
  8. printf("My name is %s, I am %d years old, and my GPA is %.2f.\n" ,
  9. name, age, gpa) ;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
My name is Juan Dela Cruz, I am 20 years old, and my GPA is 89.50.