- Joined
- Mar 12, 2018
- Posts
- 280
- Reaction
- 217
- Points
- 212
- Age
- 19
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
Last edited:
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 helpeto 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 papseto 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"); } }
ay oo c languageC yang language na yan. Akala ko C#
declare mo muna as float or double yung "inches"
oks na par maraming salamatC yang language na yan. Akala ko C#
declare mo muna as float or double yung "inches"
int distance;
papas anyari mokang mali ata convertion nito or tama ba?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.