C PROGRAM TO FIND AVERAGE HEIGHT OF A PERSON

ALGORITHM:      1. Start      2. Declare variables      3. Read the total number of persons and their height.      4. Calculate avg=sum/n and find number of persons their h>avg.      5. Display the output of the calculations .      6. Stop PROGRAM: #include <stdio.h> #include <conio.h> void main() { int i,n,sum=0,count=0,height[100]; float avg; //Read … Continue reading C PROGRAM TO FIND AVERAGE HEIGHT OF A PERSON

C PROGRAM TO FIND THE BODY MASS OF THE INDIVIDUALS

 ALGORITHM:     1. Start      2. Declare variables      3. Read the number of persons and their height and weight.      4. Calculate BMI=W/H 2 for each person      5. Display the output of the BMI for each person.      6. Stop PROGRAM: #include<stdio.h> #include<math.h> int main(void){ int n,i,j; printf("How many people's BMI do you … Continue reading C PROGRAM TO FIND THE BODY MASS OF THE INDIVIDUALS

C Program To Conversion of Decimal number into other bases

ALGORITHM:      1. Start      2. Declare variables.      3. Read a decimal number.      4. Develop the procedure for conversion of different base by modulus and divide operator.      5. Display the output of the conversion value.      6. Stop PROGRAM: #include<stdio.h> #include<stdlib.h> int main(){ int a[10],n,i; system ("cls"); printf("Enter the number to convert: … Continue reading C Program To Conversion of Decimal number into other bases