Uva 11172 – Relational Operator

Problem Link

Solution :-

 

Posted by Shipu Ahamed

4 comments

i found it as a wrong answer in uva
Only Copy paster getting Wrong Answer…
#include<stdio.h>
#include<conio.h>
#include<math.h>

int main()
{
float i[15],j[15];
int k,l,n;
E:
printf(” How many sets \n”);
scanf(“%d”, &n);
if( n<15)
{
for(k=0;k<n;k++)
{
scanf(“%f %f”,&i[k], &j[k]);
if (i[k]<1000000001 && j[k]j[k])
{printf(“> \n”);}
else if (i[k]<j[k])
{printf(“< \n”);}
else if(i[k]==j[k])
{printf(“= \n”);}

printf(“sets must be <15 \n”);
}

goto E;
}

What ???

Leave a Reply