22.06.2016, 02:40
but when i did the same way the output(in c++) was like this
consider i input hi
it will print
5-20
even if the right answer is Not
??
PHP код:
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
{
clrscr();
char i[90];
gest(i);
if(5<=strlen(i)<=20)
cout<<"5-20";
else
cout<<'Not";
getch();
}
it will print
5-20
even if the right answer is Not
??