Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProgrammingInTonguesS2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Mikołaj Warenycia
ProgrammingInTonguesS2
Commits
c86e0866
Commit
c86e0866
authored
4 weeks ago
by
Mikołaj Warenycia
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
076b3c7c
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PitaM.c
+33
-0
33 additions, 0 deletions
PitaM.c
with
33 additions
and
0 deletions
PitaM.c
0 → 100644
+
33
−
0
View file @
c86e0866
#include
<stdio.h>
#include
<stdlib.h>
int
main
(){
float
a
,
b
,
c
;
printf
(
"podaj mi swoje 3 wspolczynniki
\n
"
);
scanf
(
"%f %f %f"
,
&
a
,
&
b
,
&
c
);
printf
(
"a wiec szukasz %.2fx^2+%.2fx+%2f
\n
"
,
a
,
b
,
c
);
if
(
a
==
0
&&
b
==
0
){
printf
(
"nieoznaczonosc detected fr fr
\n
"
);
}
else
if
(
b
*
b
-
4
*
a
*
c
<
0
){
printf
(
"dude to sie sprzeczy
\n
"
);
}
else
if
(
a
==
0
){
printf
(
"to taka kreska linijka jest
\n
"
);
float
x
;
x
=-
c
/
b
;
printf
(
"a zeruje sie na %f
\n
"
,
x
);
}
else
{
float
x1
=
(
-
b
-
sqrt
(
b
*
b
-
4
*
a
*
c
))
/
2
*
a
;
float
x2
=
(
-
b
+
sqrt
(
b
*
b
-
4
*
a
*
c
))
/
2
*
a
;
if
(
x1
==
x2
){
printf
(
"to takie smieszne z jednym punktem kolo x %f
\n
"
,
x1
);
}
else
{
printf
(
"wyjdzie przyjemne %f i %f
\n
"
,
x1
,
x2
);
}}
printf
(
"i tyle dobranoc
\n
"
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment