F&A Diskussionen
Any ideas for web designing?
0 Stimmen
2 AntwortenNewb
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 AntwortenHeute heiß
Mobile number and similarity
0 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes
Alguém Português por aqui?
0 Votes