Horje
online code runner .c Code Example
online code runner .c
#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;
}
online code runner .c
#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;
    
}




C

Related
gdebi install with yes option Code Example gdebi install with yes option Code Example
write a c program to find out ncr factor of given number Code Example write a c program to find out ncr factor of given number Code Example
ringing a bell using c Code Example ringing a bell using c Code Example
Defining a macro in a header file Code Example Defining a macro in a header file Code Example
how to insert elements in and array and print it in c Code Example how to insert elements in and array and print it in c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7