🔒 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
  • 300
    Views
  • 3
    Participants
Last reply from:
Phantom Rhythm

Trending Topics

Online now

Members online
658
Guests online
1,399
Total visitors
2,057

Forum statistics

Threads
2,295,316
Posts
29,097,259
Members
1,206,801
Latest member
Cyr_lee
Back
Top