Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,707 members, 7,820,483 topics. Date: Tuesday, 07 May 2024 at 03:37 PM

PASCAL Program - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / PASCAL Program (1309 Views)

Using Pascal To Calculate Cpga / IS Pascal A Good Programming Language / I Need Compilers For Java,c++, PASCAL And Python Available In Android Format (2) (3) (4)

(1) (Reply) (Go Down)

PASCAL Program by lordprizzle(m): 2:46pm On May 04, 2015
smileyI just started pascal programming and our lecturer gave us this program to compute.
x=(m/n-2)/(a-b)+3 . please I need u guys help in solving this problem.
Re: PASCAL Program by Borwe: 2:50pm On May 04, 2015
lordprizzle:
smileyI just started pascal programming and our lecturer gave us this program to compute.
x=(m/n-2)/(a-b)+3 . please I need u guys help in solving this problem.

WOW! PASCAL is still being taught? What are you doing bachelor degree or Masters Degree or PHD?
Re: PASCAL Program by lordprizzle(m): 2:55pm On May 04, 2015
Borwe:


WOW! PASCAL is still being taught? What are you doing bachelor degree or Masters Degree or PHD?
Bsc in statistics/computer science
Re: PASCAL Program by Borwe: 3:00pm On May 04, 2015
lordprizzle:
Bsc in statistics/computer science

Wow, Computerscience? I know guys who learn it in my school but they don't teach PASCAL over here, maybe due to basics like java and c++ is already hard for most of the students. By the way you learned c++ or java or python in school yet?((Not yourself but via university))
Re: PASCAL Program by lordprizzle(m): 3:09pm On May 04, 2015
Borwe:


Wow, Computerscience? I know guys who learn it in my school but they don't teach PASCAL over here, maybe due to basics like java and c++ is already hard for most of the students. By the way you learned c++ or java or python in school yet?((Not yourself but via university))
we haven't but next semester.. pascal is an introductory programming language
Re: PASCAL Program by Borwe: 4:29pm On May 04, 2015
I myself don't even know PASCAL sad
Re: PASCAL Program by kudaisi(m): 5:07pm On May 04, 2015
I haven't worked in pascal for years. But I'm positive your answer should look something like this. If you are comfortable with the linux terminal you can run it online @ Tutorialspoint
http://www.tutorialspoint.com/compile_pascal_online.php

Program solve_equation;
Var
m, n, a, b, x : real;

Begin {no semicolon}
Write('Input number m:');
Readln(m);
Write('Input number n:');
Readln(n);
Write('Input number a:');
Readln(a);
Write('Input number b:');
Readln(b);
x:=(m div (n-2)) div ((a-b)+3);
Write('The result is: ');
Writeln(x);
Readln;
End.
Re: PASCAL Program by lordprizzle(m): 6:55pm On May 04, 2015
Borwe:
I myself don't even know PASCAL sad
same here man.. its the first programming language am learning
Re: PASCAL Program by lordprizzle(m): 7:01pm On May 04, 2015
kudaisi:
I haven't worked in pascal for years. But I'm positive your answer should look something like this. If you are comfortable with the linux terminal you can run it online @ Tutorialspoint
http://www.tutorialspoint.com/compile_pascal_online.php

Program solve_equation;
Var
m, n, a, b, x : real;

Begin {no semicolon}
Write('Input number m:');
Readln(m);
Write('Input number n:');
Readln(n);
Write('Input number a:');
Readln(a);
Write('Input number b:');
Readln(b);
x:=(m div (n-2)) div ((a-b)+3);
Write('The result is: ');
Writeln(x);
Readln;
End.
thanks man am grateful

(1) (Reply)

Apply For The Google Hash Code Programming Competition 2016 / Convert My One Page PSD To Valid HTML, CSS & Javascript / Cyber Security Free IT School

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.