111

2016-02-19 Thread Lisa via Digitalmars-d-learn
Can you please help me and explain how to create a program, which would find area of triangle and its perimeter?

Re: 111

2016-02-19 Thread Lisa via Digitalmars-d-learn
On Saturday, 20 February 2016 at 00:01:47 UTC, cym13 wrote: On Friday, 19 February 2016 at 23:56:29 UTC, Lisa wrote: Can you please help me and explain how to create a program, which would find area of triangle and its perimeter? What do you need help for exactly? What have you tried? What do

Re: 111

2016-02-19 Thread Lisa via Digitalmars-d-learn
On Saturday, 20 February 2016 at 00:15:16 UTC, Chris Wright wrote: On Sat, 20 Feb 2016 00:04:04 +, Lisa wrote: On Saturday, 20 February 2016 at 00:01:47 UTC, cym13 wrote: On Friday, 19 February 2016 at 23:56:29 UTC, Lisa wrote: Can you please help me and explain how to create a program, w

Re: 111

2016-02-19 Thread Lisa via Digitalmars-d-learn
On Saturday, 20 February 2016 at 01:48:35 UTC, Ali Çehreli wrote: On 02/19/2016 03:56 PM, Lisa wrote: Can you please help me and explain how to create a program, which would find area of triangle and its perimeter? It's great to have student questions on this forum. If you don't mind telling

Re: 111

2016-02-19 Thread Lisa via Digitalmars-d-learn
On Friday, 19 February 2016 at 23:56:29 UTC, Lisa wrote: Can you please help me and explain how to create a program, which would find area of triangle and its perimeter? And for everybody - I know how to find area and perimetr, but i don't know how to write it on programming language) Can i u

Re: 111

2016-02-19 Thread Lisa via Digitalmars-d-learn
On Saturday, 20 February 2016 at 01:48:35 UTC, Ali Çehreli wrote: On 02/19/2016 03:56 PM, Lisa wrote: Can you please help me and explain how to create a program, which would find area of triangle and its perimeter? It's great to have student questions on this forum. If you don't mind telling

Re: 111

2016-02-19 Thread Lisa via Digitalmars-d-learn
On Saturday, 20 February 2016 at 03:43:17 UTC, Ali Çehreli wrote: On 02/19/2016 07:37 PM, Lisa wrote: > import std.stdio; > import std.math; > > int main() > { > double a, b, c, p; > > writef("Enter a: "); > scanf("%d", &a); scanf is not a safe function. It trusts the format stri

Re: 111

2016-02-21 Thread Lisa via Digitalmars-d-learn
On Saturday, 20 February 2016 at 12:59:58 UTC, Ivan Kazmenko wrote: On Saturday, 20 February 2016 at 04:15:50 UTC, Lisa wrote: module main; import std.stdio; import std.math; int main() { int A, B, C; writef("A = "); readf("%lf", %A); writef("B = "); re

Re: 111

2016-02-21 Thread Lisa via Digitalmars-d-learn
On Sunday, 21 February 2016 at 14:03:56 UTC, Ivan Kazmenko wrote: On Sunday, 21 February 2016 at 12:35:31 UTC, Lisa wrote: ... Is there smth wrong again? Yes. As a programmer, most of the time, you will have to try your programs by yourself before you consider them correct. Now, run a comp