Skip to content

Commit

Permalink
Merge pull request #88 from ISHHMadushanka/main
Browse files Browse the repository at this point in the history
area
  • Loading branch information
AshuKulu authored Oct 18, 2020
2 parents a1c29fd + dd29ae6 commit 01917a1
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Area.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include<stdio.h>
int main() {
int rad; float PI = 3.14;
float area, ci;
printf("\nEnter radius of circle: ");
scanf("%d", &rad);
area = PI * rad * rad;
printf("\nArea of circle : %f ", area);
ci = 2 * PI * rad;
printf("\nCircumference: %f ", ci);
return (0);
}
44 changes: 44 additions & 0 deletions filters.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>filter</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.8/angular.min.js"></script>
</head>
<body>
<h1>Angular Js filters</h1>
<div ng-app="myApp" ng-controller="namesCtrl">
<p>Type a letter in the input field:</p>


<p><input type="text" ng-model="test"></p>

<ul>

<li ng-repeat="x in names | filter:test">
{{ x }}

</li>
</ul>
</div>

<script>
angular.module('myApp', []).controller('namesCtrl' ,function($scope) {
$scope.names = [
'lanky',
'jannetr',
'mikkyt',
'fersdffg',
'asdrty',
'opdre',
'wqawer',
'ityup',
'jhtyii',

];

});

</script>
</body>
</html>

0 comments on commit 01917a1

Please sign in to comment.