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

Trending Topics

Online now

Members online
1,174
Guests online
5,541
Total visitors
6,715

Forum statistics

Threads
2,354,524
Posts
29,383,995
Members
1,079,478
Latest member
Heyanjieee
Back
Top