Write a program in C++ to check the use of write function.
#include<iostream.h>
#include<coio.h> void main() { char ch[10]; int i,l=0; clrscr(); cout<<”Enter any string”; cin>>ch; for(i=0;i<=l;i++) { cout.write(ch,i); cout<<”\n”; getch(); } |