fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int mani()
  4. {
  5. char name[100];
  6. char lastname[100];
  7. char phon;
  8. float weight;
  9. float height;
  10. float BMI ;
  11. printf("Please put name: ");
  12. scanf ( "%s" ,&me) :
  13. printf("Please put lastname: ");
  14. scanf("%s" ,&lastname);
  15. printf("Please put phon: ");
  16. scanf("%s" ,&phon);
  17. printf("Please put weight: ");
  18. scanf("%f",&weight);
  19. printf("Please put height: ");
  20. scanf("%f",&height);
  21. BMI = weight/(height*height);
  22. system("cls");
  23. printf("My name is %s(n",name);
  24. printf("My lastname is %s(n",lastname);
  25. printf("My phon is %s(n",phon);
  26. printf("My weight is %f(n",weight);
  27. printf("My height is %f(n",height);
  28. printf("My BMI is %f(n",BMI);
  29.  
  30. }
Success #stdin #stdout 0.03s 25648KB
stdin
Standard input is empty
stdout
#include  <stdio.h>
#include  <stdlib.h>
int mani()
{  
    char name[100];
     char lastname[100];
    char phon;
    float weight;
    float height;
    float BMI ;
    printf("Please put name: ");
    scanf ( "%s" ,&me) :
    printf("Please put lastname: ");
    scanf("%s" ,&lastname);
    printf("Please put phon: ");
    scanf("%s" ,&phon);
    printf("Please put weight: ");
    scanf("%f",&weight);
    printf("Please put height: ");
    scanf("%f",&height);
    BMI = weight/(height*height);
    system("cls");
    printf("My name is %s(n",name);
    printf("My lastname is %s(n",lastname);
    printf("My phon is %s(n",phon);
    printf("My weight is %f(n",weight);
    printf("My height is %f(n",height);
    printf("My BMI is %f(n",BMI);
    
}