ok so im in college right computer science major first year and all and they still have pascal can you believe it wow so ne ways he gives out this assingment and the assingment is this i need to write a programm using delphi ythat would be able to name a prime number or a non prime number from 1 to 1000 and it needs to open the window when ran to ask you for a number and you enter a number press enter then it needs to decifer if it is a prime number or a non prime number i need help ANYONE PLEASE HELP!!!!
chickenmcnugget
-1
Newbie Poster
Recommended Answers
Jump to Postso, you think that pascal is old fashion, and you want to use delphi(you got charmed probably about drag-drop,click and the program is finished) but you aren't able to find if a number is prime or not?
what you have done until now? post some code of what you …
Jump to PostSysUtils;
{$APPTYPE CONSOLE}
// the start of the function
Function Prime
// the begging of thine main programvar
num : integer;begin
writeln(' Enter a number from 1 to 1000 and push enter ');
readln(num);
end.this is the entire code …
Jump to Postyou don't need to be an top programmer, you must want to learn, and try to understand. this is a very simple task which could be done if you took a delphi book, and try to accomplish it
code:
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, …
Jump to Postyou don't need to ask me, post your questions over here, and if somebody can help then you'll receive your help
best regards,
All 13 Replies
chickenmcnugget
-1
Newbie Poster
radu84
4
Junior Poster
chickenmcnugget
-1
Newbie Poster
chickenmcnugget
-1
Newbie Poster
chickenmcnugget
-1
Newbie Poster
chickenmcnugget
-1
Newbie Poster
radu84
4
Junior Poster
chickenmcnugget
-1
Newbie Poster
radu84
4
Junior Poster
chickenmcnugget
-1
Newbie Poster
radu84
4
Junior Poster
anwar_auctions
0
Newbie Poster
Terry Robinson
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.