Recent content by Vavotaj

  1. 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
  2. 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); } }
  3. 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); } }
  4. 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
  5. 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); } } :)
  6. V

    How Can I Fix My C While Loop Issue in Calculating Factorials?

    it works with int ... why it doesn't work with double ?
  7. 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); } }
  8. 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 ?
  9. 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
  10. V

    How Can I Fix My C While Loop Issue in Calculating Factorials?

    to ppl enter number lower than 100 higher than 50
  11. 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...
Back
Top