0
Help me for Convert C++ in visual basic.net please
I have a task from my campus (vb.net learn) https://code.sololearn.com/cQGK5K5zebvW/?ref=app
9 Answers
+ 1
We don't do assignment, show us your attempt first.
+ 1
Hello Venus you will have more chance to get help if you show your attempt and ask specific question on what you are struggling with.
+ 1
This is a cool assignment. How far have you progressed yet? Eg, do you have the beginning og a program that takes input and print output?
+ 1
#include <iostream>
using namespace std;
int main()
{
int n;
cout<<"Masukkan Nilai n= ";
cin>>n;
cout<<"\n";
int tot_ang = 0;
int tot_bil = n;
int tot_genap = 0;
int tot_ganjil = 0;
for (int i = 1; i<= n; i++){
tot_ang+=i;
i%2==1? tot_ganjil++:tot_genap++;
}
cout << "Total Angka: " << tot_ang << endl;
cout << "Total Bilangan: " << tot_bil << endl;
cout << "Total Bilangan Genap: " << tot_genap << endl;
cout << "Total Bilangan Ganjil: " << tot_ganjil << endl;
return 0;
}
0
RKK , ifl I want to make a program with vb.net, which is an automatic calculator for translating numbers. for example, n = 53.
textboxt 1 is like count 1 + 2 + 3 ... +53 = 1431
Textbox 2 is the total number of all the numbers in that number = 53
Textbox3 sm 4 is looking for even odd numbers of a total of 53 numbers .. how many odd numbers are there, how many are there, like that.
0
Yup
0
Can you help me for convert source code from c++ to vb.net?
0
I am not competent in vb.net unfortunately. Maybe someone else will help :-)
0
Ok, no problem