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

Trending Topics

Online now

Members online
1,110
Guests online
2,948
Total visitors
4,058

Forum statistics

Threads
2,307,787
Posts
29,181,110
Members
1,192,615
Latest member
newsimp1234
Back
Top