NBA - Boston Celtics

Monday, 22 October 2012

Password


#include<iostream.h>
#include<string.h>
void main()
{
char line[80];
cout<<"enter the password ";
for(int i=0;i<80;i++)
{
cin.getline(line,80);

if(strcmp(line,"gaurav"))
{
cout<<"sorry";
}
else
{
cout<<"ok";
}
}
}


No comments:

Post a Comment