Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Trending
Log in
Register
What's new
Latest activity
Register
Menu
Log in
Register
Navigation
More options
Style variation
System
Light
Dark
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Vavotaj
Recent content by Vavotaj
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
Actualy Lousy Manual didn't have it so i looked at google more precise xD
Vavotaj
Post #25
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
Solution : #include <stdio.h> main() { double x; printf("Enter number:"); scanf("%lf", &x); while (50>=x || x>=100) { printf("Number doesn't match \n"); printf("Enter number again:\n"); scanf("%lf", &x); } }
Vavotaj
Post #23
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
Solution : #include <stdio.h> main() { double x; printf("Enter number:"); scanf("%lf", &x); while (50>=x || x>=100) { printf("Number doesn't match \n"); printf("Enter number again:\n"); scanf("%lf", &x); } }
Vavotaj
Post #22
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
All i have bout scanf is int, char and float ... double is not mentioned
Vavotaj
Post #20
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
ah solution : #include <stdio.h> main() { float x; (double) x; printf("Enter number:"); scanf("%f", &x); while (50>=x || x>=100) { printf("Number doesn't match \n"); printf("Enter number again:\n"); scanf("%f", &x); } } :)
Vavotaj
Post #17
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
my professor ... he demands double
Vavotaj
Post #16
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
but how do i do it in double ?
Vavotaj
Post #14
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
it works with int ... why it doesn't work with double ?
Vavotaj
Post #12
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
for exaple : #include <stdio.h> main() { double x; printf("Enter number:"); scanf("%f", &x); while (50>x || x>100) { printf("Number doesn't match \n"); printf("Enter number again:\n"); scanf("%f", &x); } }
Vavotaj
Post #11
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
than why it is always repeating it self even if i enter number between 50 and 100 ?
Vavotaj
Post #10
Oct 13, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
or how should it be done ?
Vavotaj
Post #6
Oct 9, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
but while x is higher than 100 or lower than 50 to to that code
Vavotaj
Post #5
Oct 9, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
to ppl enter number lower than 100 higher than 50
Vavotaj
Post #3
Oct 9, 2008
Forum:
Programming and Computer Science
V
How Can I Fix My C While Loop Issue in Calculating Factorials?
#include <stdio.h> #include <string.h> double faktoriel (double y); void main() { double x, fac; char yes[5] ="yes"; char answer[5]; do { printf("Enter number:\n"); scanf("%f", &x); while (50>x || x>100) { printf("Number doesn't match \n"); //50<x<100...
Vavotaj
Thread
Oct 9, 2008
Loop
Replies: 26
Forum:
Programming and Computer Science
Forums
Vavotaj
Back
Top