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

13th Apr 2020, 4:53 AM
Venus
Venus - avatar
9 Answers
+ 1
We don't do assignment, show us your attempt first.
13th Apr 2020, 4:57 AM
RKK
RKK - avatar
+ 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.
13th Apr 2020, 5:03 AM
ifl
ifl - avatar
+ 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?
13th Apr 2020, 5:24 AM
ifl
ifl - avatar
+ 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; }
13th Apr 2020, 5:29 AM
Venus
Venus - avatar
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.
13th Apr 2020, 5:17 AM
Venus
Venus - avatar
0
Yup
13th Apr 2020, 5:27 AM
Venus
Venus - avatar
0
Can you help me for convert source code from c++ to vb.net?
13th Apr 2020, 5:27 AM
Venus
Venus - avatar
0
I am not competent in vb.net unfortunately. Maybe someone else will help :-)
13th Apr 2020, 12:08 PM
ifl
ifl - avatar
0
Ok, no problem
13th Apr 2020, 12:09 PM
Venus
Venus - avatar