453 questions
const arr = ['a', 'b', 'c', 'd', 'e']; var x = b || d || g || h || z; const the_number_of_x = arr.filter(i => i === x).length; if (the_number_of_x === 2) { console.log(success!) } } else { consol...
import mathimport numpy as npimport matplotlib.pyplot as pltdef Nutzlast(time): t1 = time #[s] _________________________ Required Values and Formulas _________________________ nutzlast = ((m_b2 - (0.0...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h>int main(void) { int num1; int num2; printf(Enter integer 1 : ); int a = scanf(%d, &num1); printf(Enter integer 2 : ); int b = scanf(%d, &am...
include<stdio.h>int main(void){a=63, b=1, c=11, d=8, e=28;d %= c += 5 - d--;printf(%d %d %d %d %d, a,b,c,d,e);return 0;}Why does the value of d come to -1 when you turn the code to?When calculat...
I'm making a programming language because I'm bored.The grammar used in the programming language is different from the grammar on the market, so can you make a code editor?It's okay to simply be a Cod...
def func_y(x, a): return (1 + a) * x / (a + x) #TypeError: can't multiply sequence by non-int of type 'float'a = 0.0462x = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]y = func_y(x, a)popt, pcov ...
package test1;public class test1 {public static void main(String[] args) { Animals dog = new Dog(3); System.out.println(dog.age);}}================================================package test1;publ...
import numpy as np T_list = [] Temp_k = np.linspace(298, 398, 10) #print (Temp_k) current = np.linspace(0, 1.4, 5) ppH2O = np.linspace(-2, -1, 5) H2_pressure = [] H2O_pp = ppH2O for i in (Temp_k): pr...
def cal(a,b): print(a,'+',b,'=',a+b) print(a,'-',b,'=',a-b) print(a,'*',b,'=',a*b) print(a,'/',b,'=',a/b)n=int (input ('two integer inputs:')).spilt()cal(n)If you create a function like this and enter...
« | - 40 - | » |
© 2024 OneMinuteCode. All rights reserved.