#include<stdio.h> main() { float l,b,r,p,c,A; printf("Enter the lenght of tringle=\n"); scanf("%f",&l); printf("Enter the breath of tringle=\n"); scanf("%f",&b); printf("Enter the radius=\n"); scanf("%f",&r); A=l*b; p=2*(b+l); c=2*3.1416*r; printf("\nResult:\n"); printf("\nArea of triangle:%f units\n",A); printf("p of triangle: %f",p); printf("\n c of circle: %f",c); }
Related Posts
10 nob input Display Prime or composite.
#include<stdio.h> int main() { int i,n[10],c=0; printf ("Enter a number \n"); f[...]
input Nob Search and sorting. using Array
#include<stdio.h> int main() { int r[20],e,s,a; printf("Enter array size"); sc[...]
10 nob input and display odd Number
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include<stdio.h> int [...]
20 nob input and display even Number.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include<stdio.h> main () { int n[[...]
Display Location and Show its Address.
1 2 3 4 5 6 7 8 9 #include<stdio.h> main() { int i,n[]={10,14,16,81,99,12}; for(i=0;i<[...]
Subscribe to:
Post Comments
(
Atom
)
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.