What's new

C & C++ Help guys pano to C language

Rojen G Embate

Honorary Poster
Joined
Mar 12, 2018
Posts
275
Reaction
217
Points
209
Age
19
Pa help naman nito guys palapag naman ng coding nito medyo hirapan ako bago pakasi

Screenshot_20230209_162522.jpg
 

Attachments

Last edited:
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
 
asignment operators lang wala dyan sa example.

May hindi ka ba ma intindihan?
reply ka lang sa thread na ito
 
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
 

Attachments

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.
 
Last edited:
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
 

Similar threads

Back
Top