Q&A Discussions
PhP 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 AnswerWhy doesn't this code work?
0 Votes
3 AnswersWhy not normal I/O
0 Votes
1 AnswerPlease help !
0 Votes
2 AnswersContinuous problem
1 Vote
1 Answerhow to output phrases?
1 Vote
2 AnswersPython question
0 Votes
1 AnswerHot today
Verify Phone Number
5 Votes
Multiple read one write
1 Votes
Anyone learning AI here ?
2 Votes
Curiosity
0 Votes
C LANGUAGE
1 Votes