Dyskusje Q&A
Is R, lisp and prolog hard?
0 głosów
2 odpowiedziKindly help me here
0 głosów
4 odpowiedzisimulation in R
0 głosów
5 odpowiedziR for data science.
1 Głos
3 odpowiedziData science?
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 odpowiedziPopularne dzisiaj
How to improve code readability
0 Votes
Functions
1 Votes
App
0 Votes
I NEED to make a game
0 Votes
Grouping data is not working
0 Votes
Please help with the output
0 Votes
Use of flag
0 Votes
Mentor
0 Votes