about to upload but i think it has something to do with the way its worded.... like both absolute values must be below 1000000001, but i dont think your doing the test on the absolute value..... these questions are brutal lol btw what module is this question in i just found it in the internet. ??? doesn't give me the file path
right
ReplyDeleteWill this work too?
ReplyDelete#include
int main()
{
int n,a,b;
scanf("%d",&n);
if(n<15)
for(int i=0;ib)
{
printf(">\n");
}
else if(a<b)
{
printf("<\n");
}
else
printf("=\n");
}
}
its right?
Deletegetting wrong answer
ReplyDelete#include
#include
using namespace std;
int main() {
int first_number, secound_number,i,a;
cin >> i;
for (a = 0; a <= i; a++)
{
cin >> first_number >> secound_number;
if (first_number>secound_number)
{
cout << ">" << "\n";
}
else if (first_number<secound_number)
{
cout << "<" << "\n";
}
else
{
cout << "=" << "\n";
}
}
return 0;
}
#include
Delete#include
int main()
{
int num1,num2,i,t;
int temp1,temp2;
scanf("%d",&t); // how many lines of input
if(t < 15)// if t is less than 15 than we can carry on
{
for(i = 0; i < t; i++)
{
scanf("%d %d",&num1, &num2); // two inputs
temp1 = abs(num1);
temp2 = abs(num2);
if((temp1 < 1000000001) && (temp2 < 1000000001))
{
if(num1 > num2)
{
printf(">\n");
}
else if(num1 < num2)
{
printf("<\n");
}
else
{
printf("=");
}
}
}
}
return 0;
}
about to upload but i think it has something to do with the way its worded.... like both absolute values must be below 1000000001, but i dont think your doing the test on the absolute value..... these questions are brutal lol btw what module is this question in i just found it in the internet. ??? doesn't give me the file path
Why is it a wrong answer???
ReplyDelete#include
using namespace std;
int main(){
int t;
long int a[t],b[t];
cin>>t;
for(int i=0;i>a[i]>>b[i];
}
for(int j=0;jb[j])
cout<<">\n";
else if(a[j]<b[j])
cout<<"<\n";
else if(a[j]==b[j])
cout<<"=\n";
}
return 0;
}
I don't understand inside while loop's condition. it seems to me the condition is false.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete#include
ReplyDeleteint main()
{
int a,b,t;
scanf("%ld",&t);
for(t=0; t<15; t++)
{
scanf("%ld%ld",&a,&b);
if(a>b)
{
printf(">\n");
}
else if(a==b)
{
printf("=\n");
}
else
{
printf("<\n");
}
}
return 0;
}
whats the problem in there
#include
ReplyDeleteint main()
{
int a,b,t;
scanf("%d",&t);
for(t=0; t<15; t++)
{
scanf("%d%d",&a,&b);
if(a>b)
printf(">\n");
else if(a==b)
printf("=\n");
else
printf("<\n");
}
return 0;
}
whats the problem in there?
why oyu use while loop in this porgram ?
ReplyDeletewhy its wrong? please helo me
ReplyDelete#include
int main()
{
int t,i,a,b;
scanf("%d",&t);
for(i=1;i<=t;i++){
scanf("%d%d",&a,&b);
if(a>b){
printf(">\n");
}
else if(a<b){
printf("<\n");
}
else{
printf("=\n");
}
}
}
Respect and I have a keen proposal: How Much Full House Renovation Cost house renovation ideas interior
ReplyDelete