We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba1cb14 + 0f8890f commit 1c86990Copy full SHA for 1c86990
AREA_OF_A_CIRCLE.c
@@ -0,0 +1,9 @@
1
+# include<stdio.h>
2
+//AREA OF A CIRCLE
3
+int main() {
4
+ float r;
5
+ printf("REDIUS:-");
6
+ scanf("%f", &r);
7
+ printf("AREA - %f", 3.14 * r * r );
8
+ return 0;
9
+}
Armstrong.c
@@ -0,0 +1,25 @@
+#include<stdio.h>
+#include<math.h>
+int n,d=0,r,s=0,t;
+printf("Enter a no- ");
+scanf("%d",&n);
+t=n;
+while (n>0)
+{
10
+ n=n/10;
11
+ d=d+1;
12
+} n=t;
13
14
15
+ r=n%10;
16
+ printf("%d", d);
17
+ s=s+pow(r,d);
18
19
20
+if (n==s)
21
22
+ printf("in %d is Armstrong",n);
23
+} else
24
+ printf("in %d is not Armstrong",n);
25
0 commit comments