Write a C++ Program use endl to output line sign.


SUBMITTED BY: Nrupeshsinh

DATE: June 22, 2016, 12:02 p.m.

FORMAT: Text only

SIZE: 189 Bytes

HITS: 624

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. char line[100];
  7. cout<<"Enter a Line :";
  8. cin.getline(line,100);
  9. cout<<"You Entered :"<<line<<endl;
  10. getch();
  11. }

comments powered by Disqus