0

Can someone make a program for me?

make a program that converts USD to Rupiah, Pound, and Ringgit. using C# from Dev Cpp/C++. i want to learn how to make it, but i keep screwing up. pls help (and write the source code)

14th Oct 2016, 1:16 PM
Venn Vademark
Venn Vademark - avatar
4 Respostas
+ 3
https://code.sololearn.com/cU4ipra2ns8W using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { Console.WriteLine("USD: "); double usd = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Rupiah: " + Math.Round(usd*12987.013)); Console.WriteLine("Pound: " + Math.Round(usd*0.820172974*100)/100); Console.WriteLine("Ringgit: " + Math.Round(usd*4.19144861*100)/100); } } }
14th Oct 2016, 1:47 PM
Zen
Zen - avatar
+ 1
Well, yeah, I just checked, and Dev C++ is for C++ only, as its name implies. That's still your fault for asking to do a C# program when you actually want a C++ one. :p Still, you can easily rewrite it to a C++ program, it's pretty easy to understand.
15th Oct 2016, 12:23 PM
Zen
Zen - avatar
0
thanks but it's not from the program i mention, the program is from pc called Dev C++. But i appreciate the answer and will learn from it
15th Oct 2016, 12:37 AM
Venn Vademark
Venn Vademark - avatar
0
Maybe you should replace C# tag with C++ to get answers in C++.
20th Oct 2016, 9:55 AM
Erwin Mesias
Erwin Mesias - avatar