title: How to print two strings on the same line in c
body: <p>I want to input a string with spaces and print that string with a another string on the same line.</p>
  
  <pre><code>int i = 4;
  double d = 4.0;
  char s[] = "Apple ";
  int x;
  double y;
  char z[105];
  
  scanf("%d",&amp;x);
  scanf("%lf",&amp;y);
  scanf("%[^105\n]s",z);
  
  printf("%d\n",i+x);
  printf("%0.1lf\n",d+y);
  printf("%s %s",s,z);
  return 0;
  </code></pre>