Q&A Discussions
Finding factor
1 Vote
2 AnswersIs it possible?
1 Vote
3 AnswersTic-Tac-Toe Java Two Players
0 Votes
1 AnswerPhP variables
1 Vote
3 AnswersWhat's Wrong With My Code??
0 Votes
2 AnswersSUBMIT, refresh page and JS
0 Votes
1 Answerhey 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 Vote
8 AnswersHow can I make a choose?
0 Votes
1 AnswerRadio type in HTML
0 Votes
1 AnswerStyling Checkboxes???
0 Votes
1 AnswerHot today
Java certification
1 Votes
Whyy.
0 Votes
Game dev
0 Votes
C# practice
0 Votes
What would my certificate get me
2 Votes
I can't understand the bug
0 Votes
Error with code
0 Votes