🔒 Closed Help guys pano to C language

Status
Not open for further replies.
eto paps.

aralin mo. makakakuha ka ng idea dito kung pano gawin yang problem mo.
Code:
using System;

class MainClass {
    public static void Main (string[] args) {
    Console.WriteLine ("Please enter inches:");
    double inches = Convert.ToDouble(Console.ReadLine());
    double feet = inches / 12;
    Console.WriteLine(feet + " Feet");
  }
}
 
eto paps.

aralin mo. makakakuha ka ng idea dito kung pano gawin yang problem mo.
Code:
using System;

class MainClass {
    public static void Main (string[] args) {
    Console.WriteLine ("Please enter inches:");
    double inches = Convert.ToDouble(Console.ReadLine());
    double feet = inches / 12;
    Console.WriteLine(feet + " Feet");
  }
}
thanks paps big help
 
1675937598650.png
1675937623950.png
eto paps.

aralin mo. makakakuha ka ng idea dito kung pano gawin yang problem mo.
Code:
using System;

class MainClass {
    public static void Main (string[] args) {
    Console.WriteLine ("Please enter inches:");
    double inches = Convert.ToDouble(Console.ReadLine());
    double feet = inches / 12;
    Console.WriteLine(feet + " Feet");
  }
}
ano kaya problema paps
 
para san yung variable na distance? wala ata sa requirements

baka makita ng prof mo.

C:
int distance;

Take note din na 6 decimal place nandun sa activity mo paps.
 
1.) mali formula mo. EXAMPLE: 1 inch = 0.083 feet
2.) ayusin mo decimal places mo katulad ng sinabi ni scorpion, EXAMPLE: printf("%0.4f", num)

goodluck
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 9
    Replies
  • 691
    Views
  • 3
    Participants
Last reply from:
shigawaka

Trending Topics

Online now

Members online
602
Guests online
2,802
Total visitors
3,404

Forum statistics

Threads
2,308,012
Posts
29,182,588
Members
1,192,732
Latest member
Bomggo
Back
Top