jituTechnology

jituTechnology

Write a Program for Ratio of Height To weight

/*A program that ask user to input height in feet and inch, and weight in Kg and then convert height in inch and then in to meter. Apter then convert height to meter and finally calculate the ratio of height to weight. programmed by: Name: Jitendr Yadav Roll:16 Date:11 jan 2011 */ #include <stdio.h> #include […]

read more

Write a program to use size of operator to determine the size of different data types.

/*A program to use size of operator to determine the size of different data types programmed by name: Jitendra yadav roll: 16 */ #include <stdio.h> #include <conio.h> void main() { printf(“Integer takes %d bytes of memory in this computer”,sizeof(int)); printf(“\ncharacter takes %d bytes of memory on this computer”,sizeof(char)); printf(“\nFloat takes %d bytes of memory on […]

read more

Write a program to read the weight in Gram and convert it to Kilogram and Gram

/*A propgram to read the weight in gram and convert it to to Kilogram and gram programmed by name: Jitendra yadav roll: 16 */ #include <stdio.h> #include <conio.h> void main() { int kg,gm; printf(“Enter the weight in Gram: “); scanf(“%d”,&gm); kg=gm/1000; gm=gm-kg*1000; printf(“Kg=%d and Gram=%d”,kg,gm); getch(); }

read more

Write a program to read the temperature in Centigrade and convert it to farenhite equivalent

/*A program to read the temperature in Centigrade and convert it to Farenhite eqiuvalent Programmed by: Name: Jitendra Kumar Yadav Roll: 16 Date: 8 Jan 2011 */ #include <stdio.h> #include <conio.h> void main() { float C,F; printf(“Enter the temperature in Centigrade:”); scanf(“%f”,&C); F=1.8*C+32; printf(“The temperature in Farenhite is %f”,F); getch(); }

read more

Write a program to read the radius of a sphere and compute its surface area and the volume

/*A program to read the radius of a sphere and compute its surface area and the volume programmed by: Name: Jitendra Kumar Yadav Roll No: 16 date: 7 Jan 2011 */ #include <stdio.h> #include <conio.h> #include <math.h> void main() { float r,SA,V; printf(“Enter the radius of a sphere: “); scanf(“%f”,&r); SA=(4*(22*1.0)/7*pow(r,2)); V=((4*1.0)/3*(22*1.0)/7*pow(r,3)); printf(“The surface area […]

read more