🔒 Closed C# Ano po kulang sa statement ko?

Status
Not open for further replies.

Phantom Rhythm

Honorary Poster
Learning stage palang sa C#
 

Attachments

  • Screenshot_20210526-194914_SoloLearn.webp
    Screenshot_20210526-194914_SoloLearn.webp
    43.2 KB · Views: 32
  • Screenshot_20210526-194923_SoloLearn.webp
    Screenshot_20210526-194923_SoloLearn.webp
    27 KB · Views: 26
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
  • 290
    Views
  • 3
    Participants
Last reply from:
Phantom Rhythm

Online now

Members online
417
Guests online
894
Total visitors
1,311

Forum statistics

Threads
2,275,079
Posts
28,960,506
Members
1,233,574
Latest member
Toktokpaff
Back
Top