Обсуждения
I've been trying to make first example program work for about an hour now and I've re-typed it multiple times but it still gives me the same error
ExampleProgram.java:3: error: cannot find symbol
System.out.printIn("Hello World");
And the arrow is pointing at the period (.) after out. Anyone can help me?
0 голосов
7 ответовHey guys im trying to male a simple login use variables and inputs. Can i have some help with my code! A syntax error keeps coming up where i state
x = v.
print 'Hello User'
x = 'Tanner'
v = input('ENTER YOUR NAME HERE')
if x = v
print ('\n Welcome Tanner!')
else x != v
print ('\n User Not Found!!')
0 голосов
9 ответовI'm trying to calculate the decimal places of pi with Ramanujan's formula. but with this code I'm getting the same output for all values of n, which it shouldn't.
from math import sqrt, factorial as f
sum=0
n=0
k=(2*sqrt(2)/9801)
while n<=100000:
sum=sum+((f(4*n))*(1103+(26390*n)))/(((f(n))**4)*(396**(4*n)))
y=1/(k*sum)
print('%.60f' % y)
n=n+1
where am I doing wrong?
2 голосов
4 ответовhey guys, I've been trying to work out the formula 'v=I*r'. But whenever I run the program and input values for I and r, it doesn't give the right answer.
This is the code
#include <iostream>
using namespace std;
int main() {
int i,r;
int v = i*r;
cout<<"what is the value of i?\n";
cin>>i;
cout<<"what is the value of r?\n";
cin>>r;
cout<<"voltage ="<<v<<endl;
return 0;
}
p/s: I'm new to programming
1 голос
8 ответовRuby Array Question
0 голосов
3 ответовhonestly, i have never dealt with any prog language before...i'm 22(aged enough to be confused, huh!)...trust me guys, i'm trying to know where exactly should i start to, things seem to be tough and above my head...u can tell me which way u hav passed up to now..i'll appreciate, thanks( if u wanna ask me, welcome)
0 голосов
4 ответовSo I'm trying to add a picture to my website atm and I'm new to this so I got this app. The image is a .pgn and even if I say <img src="thename.png" /> it doesn't work on the site. I've updated it from Filezilla obviously but it just shows a little jpg logo and doesn't display my pic. What am I doing wrong?
0 голосов
5 ответовАктуальное сегодня
Sticky position
3 Votes
Help please?
3 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes