Posts

Write a c program to find area and perimeter of rectangle

 Program:- #include <stdio.h> #include <conio.h> void main() { int l, b; void arearectangle( int , int ); void perimeterrectangle( int , int ); printf( "Enter two values \n" ); scanf( "%d %d" ,&l, &b); arearectangle(l,b); perimeterrectangle(l,b); getch(); } void arearectangle( int l, int b) {   int area;   area=l*b;   printf( "%d is area \n " ,area);   return area; } void perimeterrectangle( int l, int b) {   int perimeter ;   perimeter=2*(l+b);   printf( "%d is perimeter \n" ,perimeter);   return perimeter ; }

Write a c ++ program to delete an element from an array

Program:- #include<stdio.h> void main() {  int a[10],size,num,i,loc;  printf("Operation on 1D array-Delete\n");  printf("Enter size of array \n");  scanf("%d",&size);  printf("Enter elements \n");  for (i=1;i<=size;i++)  {   scanf("%d",&a[i]);  }   printf("Enter location of no. to be deleted \n");   scanf("%d",&loc);  for (i=loc;i<=size-1;i++) {  a[i]=a[i+1]; }  printf("Array element \n");  for(i=1;i<=size-1;i++) {  printf("%d \t",a[i]); } }

Definition of Capacitor:-

Definition of capacitors:- Capacitor is one of the most popularly used component in various electronic circuits. This component is having the ability of storing electrical energy and this ability of storing a charge is called as capacitance. capacitor is a component and its value is known as capacitance. All the capacitor are consist of two parallel conducting plates separated by an insulating material called as dielectric. 

Definition of Resistor:

Definition of Resistor: Resistor is an electronic component which provide a specified amount of opposition to the flow of current. The value of resistor is resistance. It is denoted by R and the unit is ohms. 

Definition of HTML

Definition of HTML (Hypertext Markup Language) Full form:- HTML (Hypertext Markup Language). It is the language used to create web pages. Examples:- <html> <head> <title> First Web page</title> </head> <body> This is my first html page </body> </html>

Definition of Algorithm, Flowchart, Program

Defination of Algorithm, Flowchart, Program 1] Algorithm: Algorithm is an step wise procedure of program. 2] Flowchart: Flowchart is an pictorial representation of program. 3] Program: Program is a set of instruction in it.