#include <stdio.h>

int main()
{
    int n;
    scanf("%d", &n);

    int i, a, b, c;
    for(i = 1; i <= n; i++) {
        scanf("%d %d %d", &a, &b, &c);
        int x = a * a, y = b * b, z = c * c;
        if(x + y = z || x + z = y || y + z = x) {
            printf("Case %d: yes\n", i);
        }
        else {
            printf("Case %d: no\n", i);
        }
    }

    return 0;
}

এই কোডে if(x + y = z || x + z = y || y + z = x) লাইনটায় সমস্যা হচ্ছে। দয়া করে এর সমাধান দিন।

asked 14 Apr, 14:57

toufiq_ahmed's gravatar image

toufiq_ahmed
112

edited 15 Apr, 01:47

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
23618


if(x + y = z || x + z = y || y + z = x) এর পরিবর্তে if(x + y == z || x + z == y || y + z == x) ব্যবহার করুন।

permanent link

answered 15 Apr, 18:12

Bitter_Boy's gravatar image

Bitter_Boy
213

edited 16 Apr, 08:59

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
23618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×38
×10

question asked: 14 Apr, 14:57

question was seen: 58 times

last updated: 16 Apr, 08:59