This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
#define PI 3.1416 | |
#define G 32.2 | |
int main(){ | |
float second; | |
double result; | |
printf("input time: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
int main(){ | |
double number; | |
double result; | |
printf("choose number: "); | |
scanf("%lf " , &number); | |
result = pow(number , 0.25); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buy(productID: String, productName: String, productPrices: any , productImage:any) { | |
this.sending = true; | |
this.resultPrice = this.productQuanity * productPrices; | |
let header = new Headers(); | |
header.append("Authorization", 'Basic cGtleV90ZXN0XzU3dm84OGhyeHpjcHp1aHp6cmc6'); | |
this.http.post('https://vault.omise.co/tokens', { | |
card: { | |
"name": this.name, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
Mutation: { | |
buyProduct: async (root, params, options) => { | |
let today = new Date(); | |
let dd = today.getDate(); | |
let mm = today.getMonth() + 1; | |
let yyyy = today.getFullYear(); | |
if (dd < 10) { | |
dd = '0' + dd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int input[500]; | |
int count = 0; | |
int i; | |
int sum = 0; | |
float avg; | |
printf("Input Number: "); | |
for(i = 0 ; i < 500 ; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
float prices[10]; | |
float quantity[10]; | |
float amount[10]; | |
int i; | |
printf("please Input price quantity and amount like this: 1 2 \n"); | |
for(i = 0 ; i < 10 ; i++){ | |
scanf("%f %f " , &prices[i] , &quantity[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int mode(int a[],int n) { | |
int maxv = 0, maxc = 0, i, j; | |
for (i = 0; i < n; ++i) { | |
int count = 0; | |
for (j = 0; j < n; ++j) { | |
if (a[j] == a[i]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include<stdlib.h> | |
#include<time.h> | |
int main(){ | |
int number[100]; | |
int i; | |
int Minimum , Maximum; | |
srand ( time(NULL) ); | |
for(i = 0 ; i < 100 ;i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int dimension, dimensionOfN, divisible, | |
i, j, k, temp, count = 0; | |
printf("Input number of dimension and K value:"); | |
scanf("%d %d", & dimension, & divisible); | |
dimensionOfN = dimension * dimension; | |
int arr[dimensionOfN]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<% for (var i=0;i<data.length;i++) { %> | |
<div class="col-12 col-sm-6 col-lg-4"> | |
<div class="card catalog-card"> | |
<a href="/car/<%= data[i]._id %>"> | |
<img class="card-img-top" src="/<%= data[i].image[0].filename %>"> | |
</a> | |
<div> | |
<p class="catalog-make" class="card-text catalog-make"> |