Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
c# release the simple code...begining...
genjiro irakhi
Apr 30 2016 8:52 AM
440
Reply
hello im genjiro from indonesia...
im talking the mehtod for c# console...
the my code building this..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Boolean loop = true;
do{
try
{
Console.WriteLine("Masukkan Nilai 1 :");
int x = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Masukkan Nilai 2 :");
int z = Convert.ToInt32(Console.ReadLine());
int hasil = x * z;
Console.WriteLine("\nhasil {0}*{1}={2}",x,z,hasil);
}
catch (DivideByZeroException divideZeroExp)
{
Console.WriteLine("Notice" + divideZeroExp.Message);
Console.WriteLine("Operasi Gagal Coba lagi...");
}
catch (FormatException formExp)
{
Console.WriteLine("Notice" + formExp.Message);
Console.WriteLine("Format Masukan salah Coba lagi....");
}
}
while(loop);
}
}
}
ok this my question is..
how to change the operation to multi function operation likes this div,mul,add dll...
ok thanks im wait the answer...
Jiro...
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
SQL Unit Test
alphabet and number counts using method count()