🔒 Closed C# Ano po kulang sa statement ko?

Status
Not open for further replies.
length = Convert.ToDouble(Console.ReadLine());

width = Convert.ToDouble(Console.ReadLine());

May assignment na kase yung length at width mo kaya yon yung nagagamit hindi yung nakuha mong input sa console.
 
Error kasi naglagay ka na ng value sa parameter mo.

Remove these:
length =5.4;
width = 2.3;
length = Convert.ToDouble(Console.ReadLine());
width = Convert.ToDouble(Console.ReadLine());

Change it with this:
double length = Console.ReadLine();
double width = Console.ReadLine();
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 4
    Replies
  • 307
    Views
  • 3
    Participants
Last reply from:
Phantom Rhythm

Trending Topics

Online now

Members online
329
Guests online
2,450
Total visitors
2,779

Forum statistics

Threads
2,332,346
Posts
29,264,156
Members
1,146,225
Latest member
Chococake28
Back
Top