#include <iostream>
#include <string.h>
using namespace std;
int main() {
int c,d;
char a[100],b[100];
cin>>a;
cout.width(20);cout.fill('*');
cout<<a<<endl;
cin>>b;
cout.width(20);cout.fill('-');
cout<<b<<endl<<endl<<"WEL DONE";//cout.fill,cout.width(20)
return 0;
}
#include <string.h>
using namespace std;
int main() {
int c,d;
char a[100],b[100];
cin>>a;
cout.width(20);cout.fill('*');
cout<<a<<endl;
cin>>b;
cout.width(20);cout.fill('-');
cout<<b<<endl<<endl<<"WEL DONE";//cout.fill,cout.width(20)
return 0;
}
Remove "int c,d;"
ReplyDeleteto make it work