C_90 Functions in C-part 7 | Function With Argument Without Return Type

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 127

  • @chethii_rathalu
    @chethii_rathalu 3 года назад +85

    I love you a lot mam. Only because of you I had passed in my Data structure subject. I had miss 2 months of online classes due to dengue fever but covered all the syllabus Only in 3 days. Thanks a lot mam.

    • @usaamerica9492
      @usaamerica9492 3 года назад +4

      Nuvvu great bro 🙌🏻👍🏻
      Keep it up ☺️

    • @lakshsinghania
      @lakshsinghania 3 года назад +4

      oohh damn! only in 3 days !!!!!! congo vro

    • @akhilesh2150
      @akhilesh2150 2 года назад +5

      Everyone love her 🤣

  • @durbakundu4132
    @durbakundu4132 3 года назад +81

    assignment:
    #include
    void num(int);
    void main()
    {
    int x;
    printf("enter the value of x");
    scanf("%d",&x);
    num(x);
    }
    void num(int x)
    {
    if(x%2==0)
    printf("the number is even");
    else
    printf("the number is odd");

    }

    • @NNN-sl3pd
      @NNN-sl3pd Год назад +2

      If I use / instead of % will it work in my laptop I didn't work

    • @krishnagojiya9537
      @krishnagojiya9537 Год назад +5

      @@NNN-sl3pd no bcz we need remainder which we get from % , divide / give us quotient

  • @indiraparajuli9715
    @indiraparajuli9715 3 года назад +20

    I come through to your channel while searching for merge sort algorithm. Till then i have become a big fan of you. I cannot believe that these teachers also exists. I haven't seen someone explaining with so much detail. Your teaching patience level is ultra pro max and everyone even the person who don't like to code will get motivated and understand your lectures.

  • @hariparuchuru3858
    @hariparuchuru3858 2 года назад +16

    Assignment for one int and one float
    #include
    void sum(int, float);
    void main()
    {
    int a;
    float b;
    printf("enter a int and float value ");
    scanf("%d %f", &a, &b);
    sum(a,b);
    }
    void sum(int x, float y)
    {
    printf("%f", (x+y));
    }

  • @devayanirajendran4005
    @devayanirajendran4005 2 года назад +20

    Void fn(int) ;
    Void main()
    {
    Int a=10;
    Fn(a);
    }
    Void(int z)
    {
    If(z%2==0)
    {
    Printf (" Given input is even") ;
    }
    Else
    Printf("not even") ;
    }

    • @syedabuzar3553
      @syedabuzar3553 10 месяцев назад +2

      In function definition
      You forgot to write function name fun😊

    • @18fatima15
      @18fatima15 7 месяцев назад +2

      in the 7th line, function name is not written. The correct statement is Void Fn(int z). The remaining program is correct

    • @1rahulhansraj
      @1rahulhansraj 5 месяцев назад +1

      Fifth line is error in 1st line you declared correctly but in fifth line you made spell error wrong:Fn(a) correct:fn(a)

  • @Caramel0511
    @Caramel0511 3 года назад +19

    *write a function for calculating the sum which is taking two arguments as int and float datatype*
    #include
    void sum(int,float); // function declaration
    void sum(int a,float b) //function definition
    {
    float s;
    s = a+b;
    printf("the sum is : %f",s);
    }
    void main()
    {
    int x;
    float y;
    printf("enter two number :");
    scanf("%d",&x);
    scanf("%f",&y);
    sum(x,y); //function calling
    }

    • @aryan....2986
      @aryan....2986 2 года назад +1

      If I write this type in function calling like..
      Void main()
      {
      Some statements.....
      Scanf...........
      👉 Sum(y,x); 👈
      }
      So what would be the output according to ur program ??
      compiler will take y rather than x??
      Int or float //hope u can understand my doubt..

    • @deekshith6049
      @deekshith6049 2 года назад

      what is the reason for taking float s; instead of int in function definition

    • @saurabhrautela3548
      @saurabhrautela3548 Год назад

      @@deekshith6049 because our ans will in decimal form basic math rule

  • @balkrishnabane1392
    @balkrishnabane1392 2 года назад +4

    14:18
    #include
    void evenodd(int); //function declaration with one interger type argument
    void main(){
    int EO;
    printf("Enter a number: "); //User input
    scanf("%d", &EO); // Scanning
    evenodd(EO); //calling function with variable
    }
    void evenodd(int num) //defination with argument and variable
    {
    //Logic for Identifying even odd numbers and printing them
    (num%2==0)? printf("%d is an even number
    ", num) : printf("%d is an odd number
    ", num);
    }
    20:21
    #include
    void sum(int, float); //function declaration with one interger and one float argument
    void main(){
    int a;
    float b;
    printf("Enter two numbers: "); //User input and scanning
    scanf("%d %f", &a, &b);
    sum(a , b); // calling function with variables
    }
    //defination with integer and variables
    void sum (int x, float y){
    float sum=0.0;
    sum = x+y;
    printf("SUM: %f
    ", sum); // Printing the sum
    }

  • @shaikmohammedashfaq4225
    @shaikmohammedashfaq4225 2 года назад +1

    Program for sum of an integer and float
    #include
    void sum(int ,float);
    void main()
    {
    int x;
    float y;
    printf("Enter x and y:");
    scanf("%d %f",&x,&y);
    sum(x,y);
    }
    void sum(int a,float b)
    {
    float s=0;
    s=a+b;
    printf("sum=%f",s);
    }
    Output:
    Enter x and y:5 1.6
    sum=6.600000

  • @NikhilSarnaik-z5k
    @NikhilSarnaik-z5k Год назад +1

    #include
    void sum(int , float);
    int main(){
    int a = 5;
    float b = 7.9;
    sum(a , b);
    return 0;
    }
    void sum(int a , float b){
    float sum = a + b;
    printf("%f",sum);
    }

  • @atiqahmed2123
    @atiqahmed2123 3 года назад +6

    Madem your teaching method is soo brilliant.. i have missed some online classes due to covid-19.. And now i am learning c programing to you.....you are a good moderator .. And mam please start the course of object orientated programing.plz plz.
    😊...be happy in life.

  • @KrishnaCalling
    @KrishnaCalling 2 года назад +4

    Now I understand functions just because of you and your efforts mam. Thanks you mam.

  • @rokanraja7004
    @rokanraja7004 3 года назад +5

    நான் தமிழன் உங்கள் வீடியோ அருமையாக உள்ளது

  • @shaikabdul661
    @shaikabdul661 3 года назад +4

    Each and every topic explain briefly,we need to gain proper knowledge mam😌

  • @user-kb9tz7pp9y
    @user-kb9tz7pp9y 3 года назад +2

    Thanku soo much mam…the one and only reason of me getting placed is u and the dsa playlist..thanku so much mammm

  • @mangaldip4177
    @mangaldip4177 2 месяца назад

    void check(int);
    void check(int n)
    {
    if(n%2==0)
    {
    printf("Even");
    }
    else
    printf("Odd");
    }
    void main()
    { int a;
    printf("Enter an integer:");
    scanf("%d",&a);
    check(a);
    }

  • @aparnamane4899
    @aparnamane4899 2 года назад

    sum of int and float:=
    #include
    void sum(int,float);
    int main()
    {
    int a;
    float b;
    printf("enter no int and float");
    scanf("%d%f",&a,&b);
    sum(a,b);
    return 0;
    }
    void sum(int a,float b)
    {
    float sum=0.0;
    sum=a+b;
    printf("sum is %f",sum);
    }

  • @Caramel0511
    @Caramel0511 3 года назад +7

    *write a function that takes one argument as an input to check whether a number is even or odd :*
    #include
    void evenorodd(int); //function declaration
    void evenorodd(int a) //function definition
    {
    if(a%2==0)
    {
    printf("%d = even !",a);
    }
    else
    {
    printf("%d = odd !",a);
    }
    }
    void main()
    {
    int x;
    printf("Enter a number to check whether its odd or even :");
    scanf("%d",&x);
    evenorodd(x); // calling the function
    }

    • @fahmidarahman99
      @fahmidarahman99 2 года назад

      U don't need to declare the function if you are starting with definition

  • @milenazafirova7754
    @milenazafirova7754 2 года назад

    //Function with Argument and without Return Type
    //Home assignment nb.2:
    #include
    void sum(int, float);
    int main(void)
    {
    int a;
    float b;
    printf("Enter a:
    ");
    scanf("%d", &a);
    printf("Enter b:
    ");
    scanf("%f", &b);
    sum(a, b);
    }
    void sum(int a, float b)
    {
    float s = 0;
    s = a + b;
    printf("Sum = %f
    ", s);
    }

  • @maryannemuthoni5388
    @maryannemuthoni5388 9 месяцев назад

    For the question in 14: 10
    #include
    void EvenOrOdd(int);
    void main(void)
    {
    int x;
    printf("Enter a number: ");
    scanf("%d", &x);
    EvenOrOdd(x);
    }
    void EvenOrOdd(int a)
    {
    if (a % 2 == 0)
    {
    printf("Even");
    }
    else
    {
    printf("Odd");
    }
    }

  • @anilbollepalli330
    @anilbollepalli330 7 месяцев назад

    ~ with argument and without return type
    #include
    int fun(int);//function declaration
    void main()//main function
    {
    fun(5);//function calling
    }
    int fun(int n)//function definition
    {
    scanf("%d",&n);
    if(n%2==0)
    {
    printf("number is even
    ");
    }
    else
    {
    printf("numbre is odd
    ");
    }
    }

  • @ishraqueahmed6885
    @ishraqueahmed6885 2 года назад +9

    //WAP taking one argument as input and check the number is even or odd
    //With argument & no return type
    #include
    void a(int);
    void main()
    {
    int x;
    printf("Enter a positive number :- ");
    scanf("%d", &x);
    a(x);
    }
    void a(int x)
    {
    if(x%2==0)
    {
    printf("Even number
    ");
    }
    else
    {
    printf("Odd number");
    }
    }

  • @RenuSingh-zu4ub
    @RenuSingh-zu4ub 3 года назад +5

    Ma'am please make video to explain full java language. Please teach java ma'am.

  • @aryanbaranwal7524
    @aryanbaranwal7524 2 года назад +1

    i am fall in love with this subject now 😊

  • @walkwithme_P62
    @walkwithme_P62 3 года назад +2

    Thank you ma'am
    Ur one of my favourite teacher

  • @hiriharanvm5568
    @hiriharanvm5568 5 месяцев назад

    Assignment even/odd
    #include
    void EO(int);
    int main()
    {
    int a;
    scanf("%d",&a);
    EO(a);
    }
    void EO(int x)
    {
    if(x%2==0)
    printf("It is even ");
    else
    printf("It is odd ");
    }

  • @priyanshusaini8180
    @priyanshusaini8180 2 года назад +2

    Thanku for this you explains very good 👍❤️

  • @edutech4006
    @edutech4006 3 года назад +2

    Tqs mam🥰❤️
    Love from Nepal 🇳🇵

  • @Armedslayer
    @Armedslayer 3 года назад +5

    Great explanation mam 🔥🔥❤️

  • @conceptnaresh150
    @conceptnaresh150 3 года назад +2

    How to receive your topics wise or chapter wise videos of C pro.

  • @HassansCodeLab
    @HassansCodeLab Год назад

    //Arguement without return type
    #include
    void sum(int, float);
    void main(){
    int a;
    float b;
    printf("enter a and b:
    ");
    scanf("%d%f",&a,&b);
    sum(a,b);
    }
    void sum(int x, float y){
    printf("sum=%f",x+y);
    }

  • @nikithaa.s683
    @nikithaa.s683 Год назад +1

    #include
    void num(int);
    void main()
    {
    int a;
    printf("enter any number:");
    scanf("%d",&a);
    num(a);
    }
    void num(int x)
    {
    if(x%2==0)
    printf("even");
    else
    printf("Odd");
    }

  • @itishkumarpati1810
    @itishkumarpati1810 3 года назад +5

    #include
    void detect(int);
    int main() {
    int a;
    printf("enter the number you want to know even or odd
    ");
    scanf("%d",&a);
    detect(a);
    return 0;
    }
    void detect(int x){
    if(x

  • @adityalanka1318
    @adityalanka1318 Год назад

    I love you mam and I am impressed by you teaching

  • @karthika637
    @karthika637 Год назад

    Doubt ☝️✋✋✋✋✋
    Can we take float in declaration and definition as return type and can we not return anything?

  • @nikithaa.s683
    @nikithaa.s683 Год назад +1

    #include
    void sum(int, float);
    void main()
    {
    int a;
    float b;
    printf("enter two numbers:");
    scanf("%d%f",&a,&b);
    sum(a, b);
    }
    void sum(int x, float y)
    {
    float sum;
    sum=x+y;
    printf("sum=%f",sum);
    }

  • @akankshagujral
    @akankshagujral 2 года назад

    you are genius mam... thank you so much for all your videos...😊😊😊

  • @abhishek_somashekar
    @abhishek_somashekar Год назад

    /*P6.10 Program to find out the factorial of a number*/
    #include
    long int factorial(int n);
    int main(void)
    {
    int num;
    printf("Enter a number : ");
    scanf("%d",&num);
    if(num1; i--)
    fact*=i;
    return fact;
    }

  • @GalaxyCookies76
    @GalaxyCookies76 2 года назад

    i have written in C++:
    void isEven(int); // Declare function
    int main()
    {
    int a;
    cout a;
    isEven(a);
    return 0;
    }
    void isEven(int x)
    {
    int val = x % 2; // we will use modular here as the remainder is not equal to zero means its an odd number.
    if (val == 0)
    {
    cout

  • @wavesmusicteam8543
    @wavesmusicteam8543 3 года назад

    Hamko yeh lagta hee nahee, tum dur kahee se aayee ho
    Jaise mere sapno me tumharee pehle se parchayee ho
    Mujhko bhee sang rah me tere chalna acha lagta hai
    Bada safar hai jivan me joh itna sachcha lagta hai....
    I am from Sri Lanka

  • @MAHAJAN_A
    @MAHAJAN_A 9 месяцев назад

    Everything is fine but wht abut ur expression a bit expression will be perfect for teaching 👍

  • @meghasinha1706
    @meghasinha1706 3 года назад +1

    Mam thanks for your efforts

  • @Racheals_lectures
    @Racheals_lectures 2 года назад

    Solution to the assignment.
    #include
    void even_odd(int);
    int main()
    {
    int x;
    printf("Enter a number
    ");
    scanf("%d" , &x);
    even_odd(x);
    }
    void even_odd(int a)
    {
    if (a%2==0)
    printf("Number is even");
    else
    printf("Number is odd");
    }

  • @angelmeee6696
    @angelmeee6696 3 года назад +1

    Mam, can't we write float sum=o ;
    Sum=a+b; instead of s in the definition part? Pls reply

  • @TrishalMishra
    @TrishalMishra 6 месяцев назад

    Thank you 🙇🏻‍♂️ 😊mam❤

  • @saneesh3410
    @saneesh3410 2 года назад

    Samj naya aya par dekh ke achha laga 🙂

  • @mohammedsafwan9168
    @mohammedsafwan9168 Год назад

    //function with Arguments and without return value
    #include
    void number(int);
    void main()
    {
    int num;
    printf("enter a number:");
    scanf("%d",&num);
    number(num);
    }
    void number(int x)
    {
    if(x % 2 == 0)
    {
    printf("it is even number");
    }
    else
    {
    printf("it is odd number");
    }
    }

  • @thecrazy9581
    @thecrazy9581 Год назад

    at 10:20 mam laugh is tells everything🤪🤪🤪

  • @lucifer_bois
    @lucifer_bois Год назад

    Nice teaching❤🎉

  • @mohitrawat1773
    @mohitrawat1773 3 года назад

    Mam please make a video on Recursion

  • @srikanthvarma7787
    @srikanthvarma7787 3 года назад

    Very good explanation

  • @amritpattnaik1540
    @amritpattnaik1540 2 года назад

    WAP that takes one input as argument and checks if the inputted number is odd or even:-
    #include
    void evenodd(int);
    void main()
    {
    int a;
    printf("Enter a number: ");
    scanf("%d", &a);
    evenodd(a);
    }
    void evenodd(int x)
    {
    if(x % 2 == 0)
    printf("%d is an even number", x);
    else
    printf("%d is an odd number", x);
    }

  • @saidurkhan1307
    @saidurkhan1307 3 года назад

    Love u maam...
    From Bangladesh

  • @sachingupta-nm3vx
    @sachingupta-nm3vx 3 года назад +1

    thank you mam

  • @5b6_chaithanyareddy66
    @5b6_chaithanyareddy66 3 года назад +1

    Live you mam❤️

  • @sangeetarao2291
    @sangeetarao2291 2 года назад

    Mam please do c++ teaching.please

  • @kavimishra2494
    @kavimishra2494 3 года назад +6

    My god shes beautiful ❤️😍......

  • @qtime69lol17
    @qtime69lol17 Год назад

    Here you have an example of a program that checks if a number is even, odd and treats as error numbers that are negative:
    #include
    // program that checks if a number is even or odd;
    void eoo(int);
    int main() {
    int a;
    printf("Enter a number: ");
    scanf("%d", &a);
    eoo(a);
    return 0;
    }
    void eoo(int a) {
    if (a % 2 == 0) {
    printf("Is even.");
    } else if (a % 2 != 0) {
    printf("Is odd.");
    } else if (a < 0) {
    printf("You entered negative number.");
    }
    }

  • @sakib9851
    @sakib9851 Год назад

    ❤❤❤❤❤thanks mam

  • @txxdip4950
    @txxdip4950 3 года назад

    Is this also for bca 2 nd year student as i also have data structure 🤔

  • @rajmanish3272
    @rajmanish3272 3 года назад +1

    ❣️Great👍

  • @aravindkumarraypic4807
    @aravindkumarraypic4807 Год назад

    🙏 nice maam 🙏

  • @theellahemalatha1688
    @theellahemalatha1688 2 года назад +1

    Tq mam

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Год назад

    Thanks mam

  • @devSackey
    @devSackey Год назад +1

    #include
    void isEven(int);
    void main(void)
    {
    int number;
    printf("Enter any number
    ");
    scanf("%d", &number);
    isEven(number);
    }
    void isEven(int x)
    {
    if( x % 2 == 0)
    printf("%d is an even number", x);
    else
    printf("%d is an odd number", x);
    }

  • @hariparuchuru3858
    @hariparuchuru3858 2 года назад

    Assignment:
    #include
    void eveodd(int);
    void main()
    {
    int a;
    printf("Enter a Value ");
    scanf("%d", &a);
    eveodd(a);
    }
    void eveodd(int x)
    {
    if(x%2 == 0)
    printf("even");
    else
    printf("odd");
    }

  • @lakshsinghania
    @lakshsinghania 3 года назад

    ma'am the assignment which u have given to us at the end of this video
    The code using (int,float) parameters
    but im not getting the logic part while defining the function
    i have pasted the code below
    can u say what to do if we are having int a, float b as parameters and then how do we write the logic part ??? pls ma'am im not getting this
    #include
    void sum(int,float);
    void main()
    {
    int x;
    float y;
    printf("Enter x and y
    ");
    scanf("%d %f", &x,&y);
    sum(x,y);
    }
    void sum(int a,float b)
    {
    float s=0;
    s = a+b;
    printf("sum = %f
    ",s);
    }

    • @lakshsinghania
      @lakshsinghania 3 года назад

      here in void sum(int a, float b)
      {
      here the logic part im not getting what to write
      }

  • @Indian-dl2ds
    @Indian-dl2ds Год назад

    Mam you are sach a beautiful 😍

  • @walkwithme_P62
    @walkwithme_P62 3 года назад +1

    #include
    Void even(int);
    Void main ()
    {
    Int a;
    Printf ("enter a number");
    Scand("%d",&a);
    even(a);
    }
    Void even ( int x)
    {
    Int n;
    n=x%2;
    If(n==0)
    {
    Printf (" %d is an even number",x);
    }
    Printf ("%d is an odd number",x);
    }

  • @SANSAVI2
    @SANSAVI2 2 года назад

    Very nice 😍

  • @abdesyedna4358
    @abdesyedna4358 2 года назад

    Excellent 😘😘😘

  • @VishalKumar-uu3xm
    @VishalKumar-uu3xm 2 года назад

    love you mam❤️❤️❤️❤️❤️❤️

  • @readingline1357
    @readingline1357 2 года назад +1

    I didn't understand

  • @gyanendarkaur2283
    @gyanendarkaur2283 2 года назад +1

    Ma'am if you will explain in Hindi i think we would be able to grasp faster

  • @rahulbarve9836
    @rahulbarve9836 2 года назад

    Jenny mam😍

  • @dhruvmachhi2990
    @dhruvmachhi2990 3 года назад +1

    Ma'am i want to work with you as a thumbnail editor plz reply me if you are interested in it i will send some samples.
    Thank you.

  • @kishanclub
    @kishanclub 3 года назад +1

    I love you 💝❤️💛💛💛💛💛

  • @JNM_7.7
    @JNM_7.7 7 месяцев назад

    Assignment
    #include
    void fun(int);
    int main(){
    float a;
    printf("Enter : ");
    scanf("%f", &a);
    /*printf("Enter b's value: ");
    scanf("%f", &b);*/
    fun(a);
    return 0;
    }
    void fun(int x){
    if(x%2==0){
    printf("It's an even number");
    }else{
    printf("It is an odd number");
    }
    }

  • @yogeshtewari4793
    @yogeshtewari4793 3 года назад

    Kab tak ye course khatam ho jayega?

  • @ayushgiri125
    @ayushgiri125 3 года назад

    Mam please dbms

  • @sanjanapanwar3844
    @sanjanapanwar3844 3 года назад +3

    First comment ❤❤

  • @pradeeprao2473
    @pradeeprao2473 3 года назад +1

    👍

  • @SHASHANK759
    @SHASHANK759 Год назад

    maam aap khaaa thii ap se hi ab padhungaa.......maam ap apna no. do naa aap se baat karna haii lovee youu mamm

  • @learningwithankit8701
    @learningwithankit8701 3 года назад +2

    second comment

  • @vamshicharan6854
    @vamshicharan6854 3 года назад +1

    I love you mam🥰🥰🥰🥰🥰

  • @harish_rajaselvan
    @harish_rajaselvan 3 года назад +1

    ✌️😈⚡️

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Год назад

    Assignment:
    #include
    void evenOdd(int);
    void main()
    {
    int y;
    printf("Enter a number: ");
    scanf("%d",&y);
    evenOdd(y);
    }
    void evenOdd(int x)
    {
    if(x%2==0)
    {
    printf("Even");
    }
    else
    {
    printf("Odd");
    }
    }

  • @GireeshAbburi
    @GireeshAbburi Год назад

    #include
    void fun(int);
    void main ()
    {
    int a;
    printf("enter the value of a:");
    scanf("%d",&a);
    fun(a);
    }
    void fun(int a)
    {
    if(a%2==0)
    printf("the value of a is even:");
    else
    printf("the value of a is odd:");
    }

  • @aparnamane4899
    @aparnamane4899 2 года назад

    #include
    void even(int);
    int main()
    {
    int a;
    printf("enter no");
    scanf("%d",&a);
    even(a);
    return 0;
    }
    void even(int a)
    {
    if(a%2==0)
    {
    printf("even");
    }
    else
    printf("Odd");
    }

  • @gokulharan
    @gokulharan Год назад

    #include
    void sum(int);
    void main()
    {
    int a;
    printf("Enter an integer:");
    scanf("%d",&a);
    sum(a);
    }
    void sum (int x)
    {
    if(x%2 == 0)
    printf("%d is even.",x);
    else
    printf("%d is odd.",x);
    }

  • @sigmatronX
    @sigmatronX Год назад

    #include
    void oddoreven(int);
    void main(void)
    {
    int num;
    printf("Enter a number:
    ");
    scanf("%d", &num);
    oddoreven(num);
    }
    void oddoreven(int a)
    {
    if ((a % 2) == 0)
    printf("Number is even!
    ");
    else
    printf("Number is odd!
    ");
    }

  • @gokulharan
    @gokulharan Год назад

    #include
    int sum(float,int);
    void main()
    {
    float a;
    int b;
    printf("enter a & b:");
    scanf("%f%d",&a,&b);
    sum(a,b);
    }
    int sum(float x, int y)
    {
    float s=0;
    s=x+y;
    printf("sum=%f%d
    ",s);
    }

  • @kartikpersonal2425
    @kartikpersonal2425 Год назад

    #include
    void fuc(int);
    void fuc(int x)
    {
    if (x % 2 == 0)
    {
    printf("Given number is even
    ");
    }
    else
    {
    printf("Given number is not even
    ");
    }
    }
    void main()
    {
    int a;
    printf("Enter number a
    ");
    scanf("%d", &a);
    fuc(a);
    }
    thats it

  • @bhagyashripatil586
    @bhagyashripatil586 2 года назад +1

    #include
    #include
    void fun(int);
    void main()
    { int x;
    fun(x);
    }
    void fun(int x)
    {
    int a;
    printf("enter the number");
    scanf("%d",&a);
    if(a%2==0)
    {
    printf("given number is even");
    }
    else
    printf("the given number is odd");
    }

  • @Zillionaire_01
    @Zillionaire_01 2 года назад

    #include
    void even_odd(int n)
    {
    if (n % 2 == 0)
    printf("You have entered an even number");
    else
    printf("You have entered an odd number");
    }
    void main(void)
    {
    int n;
    printf("Enter an number: ");
    scanf("%d", &n);
    even_odd(n);
    }

  • @krishangarg-tj2eg
    @krishangarg-tj2eg 11 месяцев назад

    //EVEN ODD CODE:
    #include
    void evod(int);
    void main()
    {
    int x;
    printf("Enter the number: ");
    scanf("%d", &x);
    evod(x);

    }
    void evod(int a)
    {
    if (a%2==0)
    {
    printf("The number is even");
    }
    else{
    printf("The number is odd");
    }

    }

  • @jayasuryaboopathi2676
    @jayasuryaboopathi2676 3 месяца назад

    #include
    void sum(int x);
    void main() {
    int x;
    printf("Enter a number: ");
    scanf("%d", &x);
    sum(x);
    }
    void sum(int x) {
    if (x % 2 == 0) {
    printf("The number %d is even
    ", x);
    }else{
    printf("The number %d is odd
    ", x);
    }
    }

  • @Logan-ig7sm
    @Logan-ig7sm Год назад

    #include
    void fun(int);
    int main()
    {
    int x;
    printf("enter a number;
    ");
    scanf("%d",&x);
    fun(x);
    }
    void fun(int x)
    {
    if(x%2==0)
    printf("%d is an even number",x);
    else
    printf("%d is odd number",x);
    }

  • @NikhilSarnaik-z5k
    @NikhilSarnaik-z5k Год назад

    #include
    void evenOdd(int);
    int main(){
    int n;
    printf("Enter the no. to cheack weather its even or odd :");
    scanf("%d",&n);
    evenOdd(n);
    return 0;
    }
    void evenOdd(int n){
    if(n%2 == 0){
    printf("%d is a even no.",n);
    }
    else
    printf("%d is a Odd no.",n);
    }