Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

it a proggrame of even odd number using function pleae help me out in knowing whats the error

–1 vote
asked Mar 5, 2021 by adityaarya951 (110 points)
#include <stdio.h>
int balleballe(int a);

int main()
{int x;
    printf("give us the value of the number u want to check wether even or odd");
    scanf("%d", &x);
    balleballe(x);
    return 0;

    
}
 int  ballebale(int a )
 {
    
    if(a%2==0){
        printf("oyee hoye even no hai ji");
        
    }
    else{
        printf("oye hoye odd hai ji ");
    }
   return 0;
    
}

2 Answers

0 votes
answered Mar 13, 2021 by xDELLx (10,520 points)

check the names of function declared (balleballe) & function defined (ballebale)

0 votes
answered Mar 13, 2021 by Bharadwaj .R (140 points)
you mistakes your int declaration above if statement
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...