1:- Write a program to print “Hello word”.#programming with c


    1:- Write a program to  print “Hello word”.


 In morden age the root of all computer languages is ALGOL , introduced in the early 1960s . ALGOL was the 1st  computer languages to use a block structure. ALGOL  gave the concept of structured programming to the computer science community.
Martin Richards in the year, 1968 developed a language called  BCPL (Basic Combinined programming Languages) primarily it is written for system software.
In1971, Ken Thomson created a language using many features of BCPL and called it is simply “B”. in those days  B was used to create  a early versions of UNIX operating system at the BELL laboratories.
In 1972, Dennis Ritchie created C-languages with the help of ALGOL ,BCPL and B,.C- language uses the many concepts of the these languases and other powerful  features.it is a robust languases whose rice set of built-in functions and operators can be used to write any complex program.                                                                                                                      
c-programming print hello
c programming

Write a program to  print “Hello word”.

   #include<stdio.h>
                       #include<conio.h>
                        Void main()
 {
Clrscr();
printf(“Hello  Shiva”);
        getch();
}

Output:- Hello Shiva
java point,programming r,
output

2:- Write a program in C-language  to find out area of rectangle.

c-programming,area of rectangle
c-program of area of rectangle

Write a program in C-language  to find out area of rectangle.

                   #include<stdio.h>
                     #include<conio.h>
                        Void main()
 {
Int  l, b, area;
Clrscr();
Printf(“Enter the value  of Length and breadth \n”);
Scanf(“%d%d”,&l,&b);
area=l*b;
printf(“area=%d”,area);
getch();
}

 Input:- Enter the value of Length and breadth
                l=4
                b=5
Output:- area=20
c-programming
output

3:- Write a program in C-language  to find  out area of Circle.

                   
programming in c


Write a program in C-language  to find  out area of Circle.

 #include<stdio.h>
   #include<conio.h>
    Void main()
 {
float  r, area;
Clrscr();
Printf(“Enter the value  of  radius \n”);
Scanf(“%f”,&r);
area=(3.14*(r*r));
printf(“area=%f”,area);
getch();
}

Input:- Enter the value  of  radius
            r=4
output:-50.240002
programming in c

4:- Write a program in C-language  to find out area of Square.

programming in c

                   #include<stdio.h>
                     #include<conio.h>
                        Void main()
                          {
                         float  s, area;
                          Clrscr();
Printf(“Enter the value  of sides \n”);
Scanf(“%f”,&s);
area=(s*s);
printf(“area=%f”,area);
getch();
}
Input:-Enter the value of sides
         s= 5

 output:- area= 25

programmingin c
5:- Write a program in C –language  to find out area of  Triangle.

programming in c

Write a program in C –language  to find out area of  Triangle.
         
          #include<stdio.h>
                     #include<conio.h>
                        Void main()
 {
float  h, b, area;
Clrscr();
Printf(“Enter the value  of height  and breadth\n”);
Scanf(“%f%f”,&l,&b);
area=((h*b)/2);
printf(“area=%f”,area);
getch();
}
Input:- Enter the value of height  and breadth
          h=3.5
          b=   6
      output:-  area =10.500000
programming in c


Post a Comment

0 Comments