🔒 Closed Help guys pano to C language

Status
Not open for further replies.

Rojen G Embate

Honorary Poster
Pa help naman nito guys palapag naman ng coding nito medyo hirapan ako bago pakasi

Screenshot_20230209_162522.jpg
 
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
  • 677
    Views
  • 3
    Participants
Last reply from:
shigawaka

Trending Topics

Online now

Members online
1,091
Guests online
997
Total visitors
2,088

Forum statistics

Threads
2,274,722
Posts
28,957,832
Members
1,233,408
Latest member
0226Mjane
Back
Top