c Pythagorean triples

#include <stdio.h>
#include <stdlib.h>

int main() {
	int a, b, c;

	printf("TERNE PITAGORICHE!\n\nPrimo numero: ");
	scanf("%d", &a);
	
	printf("Secondo numero: ");
	scanf("%d", &b);
	
	printf("Terzo numero: ");
	scanf("%d", &c);
	
	if((a * a + b * b) == (c * c))
	{
		printf("E' una terna pitagorica!\n\n\n");
	}
	else
	{
		printf("Non e' una terna pitagorica!\n\n\n");
	}
	
	system("pause");
}

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
special Pythagorean triplets Pythagorean triplet for which a + b + c = 1000. 368 pythagorean triples c program for pythagorean triples what is pythagorean triples pythagorean triplet code check pythagorean triples c pythagorean triplet in c++ pythagorean triples of 15 formula of pythagorean triples generate pythagorean triples python pythagorean triples cpp examples pythagorean triplet find pythagorean triples primitive pythagorean triples pythagorean triples rules famous pythagorean triples Special Pythagorean triplet special pythagorean triplet solution pythagorean triples example pythagorean triples program in c++ pythagorean triples examples pythagorean triples in c++ programming pythagorean triples with explanation pythagorean triples in array c programming generating pythagorean triples what are pythagorean triples pythagorean triples problem a pythagorean triplet basic pythagorean triples anlges triples pythagorean Pythagorean Triples. finding pythagorean triples check pythagorean triples c++ formula for pythagorean triples Pythagorean triples? how to find the pythagorean triples important Pythagorean triples pythagorean triples with 8 useful pythagorean triples list of pythagorean triples program to check pythagorean triples in c basic pythagorean triples pythagorean triples of Pythagorean triplets in c code how to pythagorean triple in c++ common pythagorean triples Calculating Pythagorean Triples in python all pythagorean triples given c all pythagorean triples pythagorean triples program in python pythagorean triples c Pythagorean triples
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source