- 1
Can you give me an example even just the first to put in my code... Cause I dont know how to start..
Write a C# program that will compute the sum, difference , product and qoutient of two numbers which will be entered by the user.
3 Respuestas
+ 2
int x =Convert.ToInt32(Console.ReadLine());
int y =Convert.ToInt32(Console.ReadLine());
int sum=x+y;
int minus=x-y;
int prod=x*y;
If(y!=0)
{
double div=Convert.ToDouble(x/y);
}
int remainder =x%y;
+ 1
You can start here, though its just sum()
https://code.sololearn.com/cXRLX70BtpIN/?ref=app
+ 1
Thank you Josh