¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
Who wants Lua script?
3 Votos
2 Respuestashelp
1 Voto
4 Respuestashey 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 Voto
8 RespuestasAI or web ?
1 Voto
1 RespuestaPathway
1 Voto
1 Respuestai need help
1 Voto
3 RespuestasPlease help me
0 Votos
1 RespuestaHello
-2 Votos
2 RespuestasBest kick start
0 Votos
1 RespuestaGuidance
2 Votos
1 RespuestaHello guys right now I am kinda of new in python
my question is related to the function call len()
len() its print out the character but here it's the confusing part, I am working with a list let me explain an example
players
['lee', 'bob', 'moe', 'joe']
len(players)
4
why it's giving me 4 item in the list I thought len it counts the characters and if I do this it give me the correct somewhat answer what I am seeking,
len(players [-1])
3
0 Votos
8 RespuestasSo 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 Votos
5 RespuestasHow do i create an app?
0 Votos
3 RespuestasI'm not able to create the new path, I put in the variable path and value c: program files/java/jdk1.80_101 which is what this file is named and it still doesn't work on the command prompt, everytime I put in Javac I get Javac is not recognizable as an internal or external command, operable program or botch file. please help
0 Votos
4 RespuestasWhen Bongi's new baby, Sipho, was born,she opened a savings account woth R1000.00. On each daybitthday,starting with the first,the bank added 4.5% of the balnce and Bongi added another R500.00 to the account.Write a loop that will calculate how much money was in the account on Sipho's 18th birthday?
0 Votos
2 RespuestasHow to learn vue.js?
0 Votos
1 RespuestaEn tendencia hoy
Access deny problem
2 Votes
BOTSS
0 Votes
3 consecutive words
0 Votes
Help
0 Votes
A small question
0 Votes
How to use ai ?
0 Votes
c++ help
0 Votes