F&A Diskussionen
Newb
2 Stimmen
3 Antwortenproblem with asterisk
1 Stimme
1 AntwortHaha I'm getting better
0 Stimmen
2 AntwortenWhat is Wrong with my code?
1 Stimme
1 AntwortAbout the head part of html
1 Stimme
1 AntwortAddition of game development course
3 Stimmen
1 AntwortWho 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 AntwortHeute heiß
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
2 Votes
JAVA PROGRAMMING
1 Votes