Here is my code: Code: /*Conversion.c -- Currency conversion*/ #include<stdio.h> int main(void) { float dollar; /* US dollar amount */ float canada; /* Canada equivalent */ float britian; /* Britian equivalent
I don't think I understand fully what you want to do but this code check if caracters user input is contained in lc or uc: user_input = input('enter text: ') lc = {'a','b','c','d'} uc = {'A','B','C','D'} #for every character for i in user_input: if i in lc...
Then I had an error code when I try to fit a repeated measure model. Please see the following codes: 테마복사 >> load anovatry >> People=['1' '2']'; >> t=table(People,anovatry(:,1),anovatry(:,2),anovatry(:,3),......
There is (probably) a much better solution, but I can't figure out what is wrong with this. (only main part of the code) int n, q, dfn[200001], low[200001], a[200001], w[200001], an[21][200001], dep[200001], tot = 0, rt = 1; vector<int> gv[200001]; inline void add...
Line 8, you have a single quote and then end with a double quote. Single quotes are usually used as single character values rather than strings. PS: A good hint for this was that the code after line 8 is all purple. Last edited onAug 19, 2011 at 7:11am ...
what is wrong with my code in Matlab function?. Learn more about differential equations, model, radiaoctive decay, physics MATLAB, Simulink
This is the code that I have... using System; using System.IO; using System.Text; using Util; namespace Program_11 { class Program { const string INPUT_FILE_NAME = "\\CIS110\\prg11Dat.txt" ; //sta...
Hello I need some help about the problem 368B (link :http://codeforces.com/problemset/problem/368/B) My solution is :http://codeforces.com/contest/368/submission/14799431 and it works perfectly on codeblocks but giving wrong answer in Codeforces. Can anyone please explain why ? Thanks in ...
the output of this program is count = 1 count = 1 count = 1 and it suppose to be : count = 1 count = 2 count = 3 what's the wrong with my code ? or how can i get the output 1,2,3 class Employee { int id; string name; ...
My problem with the code is modularity. The functionality of the switch can be handled within a single method which would decrease the number of methods you need along with the number points the exception is "bubbled up". I agree with the others that a char variable should be used along ...