Dyskusje Q&A
PhP variables
1 Głos
3 odpowiedziWhat's Wrong With My Code??
0 głosów
2 odpowiedziSUBMIT, refresh page and JS
0 głosów
1 Odpowiedźhey 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 Głos
8 odpowiedziHow can I make a choose?
0 głosów
1 OdpowiedźRadio type in HTML
0 głosów
1 OdpowiedźStyling Checkboxes???
0 głosów
1 OdpowiedźHelp mee
0 głosów
2 odpowiedziWhy doesn't this code work?
0 głosów
3 odpowiedziWhy not normal I/O
0 głosów
1 OdpowiedźPlease help !
0 głosów
2 odpowiedziContinuous problem
1 Głos
1 OdpowiedźPopularne dzisiaj
Data Analysis Course
1 Votes
Time up code for data revision
0 Votes
Web vs python
0 Votes
Is there LUA?
0 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Best Python Calculator Code
1 Votes