Answers for "online code runner .c"

C
-1

online c compiler

#include<stdio.h>
void accept_num(int arr[],int n);
int main(void)
{
    int n,ptu[n];
    printf("Enter limit of element in an array:");
    scanf("%d",&n);
    accept_num(ptu,n);
    
   return 0; 
}
void accept_num(int arr[],int n)
{
    int i;
    printf("\nEnter the element:");
    for (i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    for (i=0;i<n;i++)
    {
        printf("\n arr[%d]=%d &arr[%d]=%u",i,arr[i],i,&arr[i]);
    }
}
Posted by: Guest on May-13-2021
0

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;
}
Posted by: Guest on November-11-2021

Code answers related to "C"

Browse Popular Code Answers by Language