C Programming code to calculate area of a circle by defining pi as 3.1415 Algorithm Define pi as 3.1415 since pi is not a predefined constant in C Accept the radius of the circle Calculate the area of the circle Display the output Code #include<stdio.h> #include<conio.h> #define pi 3.1415 void main() { clrscr(); int r;

C program to find sum and average of two numbers with repeating the calculation as log as the user wants to calculate any number of calculation. Algorithm Accept the first number Accept the second number Calculate sum and average Ask the user if he/she wants to compute again If yes, repeat the above steps else

C Programming code to convert inches to centimeters Algorithm Accept the number in inches Calculate centimeter using the formula Display the output Code #include<stdio.h> #include<conio.h> void main() { clrscr(); float n,m; printf("Enter the number in inches \n"); scanf("%f",&n); m=n*2.54; printf("\n Number in inches= %f",n); printf(" \n Number in centimeters= %f",m); getch(); }

Write a microprocessor 8085 program to load Register C with BBH, and store this data to memory location 2040H. Microprocessor 8085 Code to move data from Register to memory Code MVI C,BBH LXI H,2040H MOV M,C RST