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

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 127

  • @chethii_rathalu
    @chethii_rathalu 3 роки тому +86

    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 роки тому +6

      Everyone love her 🤣

  • @durbakundu4132
    @durbakundu4132 3 роки тому +84

    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 роки тому +21

    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 роки тому +17

    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 11 місяців тому +2

      In function definition
      You forgot to write function name fun😊

    • @18fatima15
      @18fatima15 8 місяців тому +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 6 місяців тому +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
    }

  • @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.

  • @rokanraja7004
    @rokanraja7004 3 роки тому +5

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

  • @KrishnaCalling
    @KrishnaCalling 2 роки тому +4

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

  • @shaikabdul661
    @shaikabdul661 3 роки тому +4

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

  • @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

  • @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

  • @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);
    }

  • @aryanbaranwal7524
    @aryanbaranwal7524 2 роки тому +1

    i am fall in love with this subject now 😊

  • @Armedslayer
    @Armedslayer 3 роки тому +5

    Great explanation mam 🔥🔥❤️

  • @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

  • @edutech4006
    @edutech4006 3 роки тому +2

    Tqs mam🥰❤️
    Love from Nepal 🇳🇵

  • @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

  • @walkwithme_P62
    @walkwithme_P62 3 роки тому +2

    Thank you ma'am
    Ur one of my favourite teacher

  • @priyanshusaini8180
    @priyanshusaini8180 2 роки тому +2

    Thanku for this you explains very good 👍❤️

  • @thecrazy9581
    @thecrazy9581 2 роки тому

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

  • @RenuSingh-zu4ub
    @RenuSingh-zu4ub 3 роки тому +5

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

  • @lucifer_bois
    @lucifer_bois Рік тому

    Nice teaching❤🎉

  • @conceptnaresh150
    @conceptnaresh150 3 роки тому +2

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

  • @TrishalMishra
    @TrishalMishra 7 місяців тому

    Thank you 🙇🏻‍♂️ 😊mam❤

  • @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");
    }
    }

  • @akankshagujral
    @akankshagujral 2 роки тому

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

  • @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);
    }

  • @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);
    }

  • @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");
    }

  • @sakib9851
    @sakib9851 Рік тому

    ❤❤❤❤❤thanks mam

  • @adityalanka1318
    @adityalanka1318 Рік тому

    I love you mam and I am impressed by you teaching

  • @GadgetGurushubh
    @GadgetGurushubh 3 роки тому +1

    ❣️Great👍

  • @meghasinha1706
    @meghasinha1706 3 роки тому +1

    Mam thanks for your efforts

  • @anilbollepalli330
    @anilbollepalli330 8 місяців тому

    ~ 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
    ");
    }
    }

  • @angelmeee6696
    @angelmeee6696 3 роки тому +1

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

  • @5b6_chaithanyareddy66
    @5b6_chaithanyareddy66 3 роки тому +1

    Live you mam❤️

  • @mangaldip4177
    @mangaldip4177 3 місяці тому

    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);
    }

  • @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);
    }

  • @aravindkumarraypic4807
    @aravindkumarraypic4807 Рік тому

    🙏 nice maam 🙏

  • @saidurkhan1307
    @saidurkhan1307 3 роки тому

    Love u maam...
    From Bangladesh

  • @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;
    }

  • @karthika637
    @karthika637 Рік тому

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

  • @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
      }

  • @srikanthvarma7787
    @srikanthvarma7787 3 роки тому

    Very good explanation

  • @saneesh3410
    @saneesh3410 2 роки тому

    Samj naya aya par dekh ke achha laga 🙂

  • @maryannemuthoni5388
    @maryannemuthoni5388 10 місяців тому

    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");
    }
    }

  • @abdesyedna4358
    @abdesyedna4358 2 роки тому

    Excellent 😘😘😘

  • @kavimishra2494
    @kavimishra2494 3 роки тому +6

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

  • @hiriharanvm5568
    @hiriharanvm5568 7 місяців тому

    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 ");
    }

  • @VishalKumar-uu3xm
    @VishalKumar-uu3xm 2 роки тому

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

  • @sachingupta-nm3vx
    @sachingupta-nm3vx 3 роки тому +1

    thank you mam

  • @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

  • @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);
    }

  • @SANSAVI2
    @SANSAVI2 2 роки тому

    Very nice 😍

  • @Indian-dl2ds
    @Indian-dl2ds Рік тому

    Mam you are sach a beautiful 😍

  • @kishanclub
    @kishanclub 3 роки тому +1

    I love you 💝❤️💛💛💛💛💛

  • @txxdip4950
    @txxdip4950 3 роки тому

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

  • @mohitrawat1773
    @mohitrawat1773 3 роки тому

    Mam please make a video on Recursion

  • @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

  • @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.");
    }
    }

  • @theellahemalatha1688
    @theellahemalatha1688 2 роки тому +1

    Tq mam

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Рік тому

    Thanks mam

  • @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");
    }
    }

  • @MAHAJAN_A
    @MAHAJAN_A 10 місяців тому

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

  • @sanjanapanwar3844
    @sanjanapanwar3844 3 роки тому +3

    First comment ❤❤

  • @rahulbarve9836
    @rahulbarve9836 2 роки тому

    Jenny mam😍

  • @sangeetarao2291
    @sangeetarao2291 2 роки тому

    Mam please do c++ teaching.please

  • @yogeshtewari4793
    @yogeshtewari4793 3 роки тому

    Kab tak ye course khatam ho jayega?

  • @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);
    }

  • @vamshicharan6854
    @vamshicharan6854 3 роки тому +1

    I love you 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.

  • @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");
    }

  • @ayushgiri125
    @ayushgiri125 3 роки тому

    Mam please dbms

  • @readingline1357
    @readingline1357 2 роки тому +1

    I didn't understand

  • @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

  • @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);
    }

  • @harish_rajaselvan
    @harish_rajaselvan 3 роки тому +1

    ✌️😈⚡️

  • @learningwithankit8701
    @learningwithankit8701 3 роки тому +2

    second comment

  • @gyanendarkaur2283
    @gyanendarkaur2283 2 роки тому +1

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

  • @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");
    }

  • @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);
    }

  • @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");
    }
    }

  • @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);
    }

  • @JNM_7.7
    @JNM_7.7 8 місяців тому

    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");
    }
    }

  • @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");
    }

  • @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);
    }

  • @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:");
    }

  • @jayasuryaboopathi2676
    @jayasuryaboopathi2676 4 місяці тому

    #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);
    }
    }

  • @krishangarg-tj2eg
    @krishangarg-tj2eg Рік тому

    //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");
    }

    }

  • @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);
    }

  • @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);
    }

  • @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);
    }