Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
Who wants Lua script?
3 Stimmen
2 AntwortenAdvice for an absolute beginner?
0 Stimmen
1 AntwortWhen to apply for your first job
0 Stimmen
1 Antworthelp
1 Stimme
4 Antwortenhey 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 Stimme
8 AntwortenAI or web ?
1 Stimme
1 AntwortPython Course Progression
0 Stimmen
2 Antworteni need help
1 Stimme
3 AntwortenWhat's wrong with this code?
1 Stimme
2 AntwortenPlease help me
0 Stimmen
1 AntwortWhat exactly is Java Script?
0 Stimmen
2 AntwortenC programming should be added?
1 Stimme
1 AntwortHello
-2 Stimmen
2 AntwortenBest kick start
0 Stimmen
1 AntwortHello 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 Stimmen
8 AntwortenSo 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 Stimmen
5 AntwortenHow do i create an app?
0 Stimmen
3 AntwortenI'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 Stimmen
4 AntwortenWhen 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 Stimmen
2 AntwortenHow to learn vue.js?
0 Stimmen
1 AntwortHeute heiß
Access deny problem
2 Votes
BOTSS
0 Votes
3 consecutive words
0 Votes
Help
0 Votes
A small question
0 Votes
c++ help
0 Votes
How to use ai ?
0 Votes