xxxxxxxxxx
#include <stdio.h>
int main() {
int num1;
int num2;
int num3;
int sum = 0;
scanf("%d %d %d" , num1 , num2 , num3);
num1= num1 * num1;
num2= num2 * num2;
num3= num3 * num3;
if (num1 > num2 && num1 > num3) {
if (num1 = num2 + num3) {
printf("YES");
sum = 1;
}
}
if (num2 > num1 && num2 > num3) {
if (num2 = num1 + num3) {
printf("YES");
sum = 1;
}
}
if (num3 > num2 && num3 > num1) {
if (num3 = num2 + num1) {
printf("YES");
sum = 1;
}
if (sum ==0) {
printf("NO");
}
return 0;
}
xxxxxxxxxx
#include <stdio.h>
int main()
{
int choice=0;
printf("\n***************************************\n");
printf("1. Open Notepad...\n");
printf("2. Get Ip Address...\n");
printf("3. Shut down the computer...\n");
printf("** Enter your choice :");
scanf("%d",&choice);
switch(choice)
{
case 1:
system("notepad");
break;
case 2:
system("ipconfig");
system("pause");
break;
case 3:
system("SHUTDOWN -S");
system("pause");
break;
default:
printf("\n Invalid choice !!!");
}
return 0;
}
xxxxxxxxxx
47961 19/1/2022 1400 634 4 4 346 0 1-2 2-1 13 9 10 7 3 3 2 -1 72 18 24 12
xxxxxxxxxx
// This code block answers the query by providing an online C language compiler using the Ideone API.
// Importing required libraries
import requests
# Function to compile and execute C code using Ideone API
def compile_and_execute_c_code(code):
# Set the URL of the Ideone API
url = "https://ideone.com/api/1/compile"
# Set the payload with required parameters (compiler, code, and input)
data = {
"source_code": code,
"compiler_id": 11, # Compiler ID for C language
"input": ""
}
# Send a POST request to the Ideone API
response = requests.post(url, data=data)
# Parse the response JSON and get the output
output = response.json()['output']
# Return the output
return output
# Example code to be compiled and executed
c_code = """
#include<stdio.h>
int main() {
printf("Hello, world!");
return 0;
}
"""
# Call the function to compile and execute the code
output = compile_and_execute_c_code(c_code)
# Print the output
print(output)