Header Ads

ad728
  • Computer Program C language

    1) Sum of two integer Numbers

    #include<stdio.h>
    int main ( )
    {
    int a,b,c;
    print f ("\n Enter two number");
    scan f ("\%d",&a &b);
    c=a+b
    print f ("\n sum is %d",c);
    return 0;
    }



    2) Write a programme to find out the result after subtraction of two decimal numbers.

    #include<stdio.h>
    float main ( )
    {
    float a,b,c;
    print f ("\n Enter two number");
    scan f ("%f %f", &a &b);
    c=a-b;
    print f  ("\n subtraction is %f",c);
    return 0;
    }


    3) Hello Tech World 

    #include<stdio.h>
    int main ( )
    {
    print f ("HELLO TECH WORLD");
    print f ("\n BYE TECH WORLD ");
    return 0:

    No comments

    C Program to Store Information(Name,Roll no and Marks) of a Student Using Structure

    INPUT NAME ROLL NO AND MARKS OF STUDENT AND                           PRINT USING STRUCTURE #include<stdio.h> #include<string.h...

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728