jituTechnology

jituTechnology

Write a program to read the radius of a circle and compute its Area and Circumference

[showmyads]/* A program to read the radius of a circle and compute its area and circumference programmed by: Name: Jitendra Kumar Yadav Roll no: 16 Date: 07 jan 2011 */ #include <stdio.h> #include <conio.h> #include <math.h> // to apply the power rule of mathematic void main() { float A,C,r;//Area may be apter decimal because radius […]

read more

Write a program to read the Principle,Time,and Rate nd calculate the Interest and Total Amount

/*A program to read the Principle. Time, and Rate and calculate the Interest and total Amount. Programmed by: Name: Jitendra Kumar Yadav Roll: 16 Date: 8 Jan 2011 */ #include <stdio.h> #include <conio.h> void main() { float P,T,R,I,A; printf(“Enter the principle(P):”); scanf(“%f”,&P); printf(“Enter the Time(T):”); scanf(“%f”,&T); printf(“Enter the Rate(R):”); scanf(“%f”,&R); I=(P*T*R)/100; A=P+I; printf(“The Interest is […]

read more

write a program to illustrate modulus operator in which second is given as an input and the program converts it to hours, minutes and seconds

/*A program to illustratet the modulus operator in which second is given as an input and the program converts it to houurs,minutes and seconds. programmed by: Name: Jitendra Kumar Yadav Roll: 16 Date: 11 jan 20119*/ #include <stdio.h> #include <conio.h> void main() { int hours,minutes,seconds,z; printf(“Enter the time in seconds: “); scanf(“%d”,&seconds); hours=seconds/(60*60); z=seconds%(60*60);//modulus operator […]

read more

Write a program to find the maximum of two numbers using conditional operators

/*A program to find the maximum of two numbers using conditional operators programmed by: Name: Jitendra Yadav Roll:16 Date: 11 Jan 2011 */ #include <stdio.h> #include <conio.h> void main() { int a,b,max; printf(“Enter the two number a and b\n”); scanf(“%d%d”,&a,&b); max=(a>b)? a:b;//conditionl operator printf(“The maximum of two is %d”,max); getch(); }

read more

Write a program to calculate the mass of air in Automobile tire

/*A program to calculate the mass of air in automobile tire programmed by name: Jitendra yadav roll: 16 */ #include <stdio.h> #include <conio.h> void main() { int V,m,T,P; printf(“Enter the pressure of a tire:”); scanf(“%d”,&P); printf(“Enter the Volume of air in the tire:”); scanf(“%d”,&V); printf(“Enter the temperature of air in the tire:”); scanf(“%d”,&T); m=(P*V)/(0.37*(T+460)); printf(“The […]

read more