🔒 Closed Pa check namn ng code ko (C language)

Status
Not open for further replies.
use float instead of double

C:
#include <stdio.h>

int main()

{
float cm, ft;
float result;


printf("Enter length in centimeter (cm.): ");
scanf("%f", &cm);

result = (cm * 0.0328084);

printf("%f cm. is %f ft. when you convert to feet.",cm,result);


return 0;

}
 
pass by reference ba? or pass by value?

use float instead of double

C:
#include <stdio.h>

int main()

{
float cm, ft;
float result;


printf("Enter length in centimeter (cm.): ");
scanf("%f", &cm);

result = (cm * 0.0328084);

printf("%f cm. is %f ft. when you convert to feet.",cm,result);


return 0;

}
goods na ito gamitan lang ng function just like sa program na pinakita ni ts
 
use float instead of double

C:
#include <stdio.h>

int main()

{
float cm, ft;
float result;


printf("Enter length in centimeter (cm.): ");
scanf("%f", &cm);

result = (cm * 0.0328084);

printf("%f cm. is %f ft. when you convert to feet.",cm,result);


return 0;

}
pass by reference ba? or pass by value?


goods na ito gamitan lang ng function just like sa program na pinakita ni ts
kailangan kasi function eh pero try ko

use float instead of double

C:
#include <stdio.h>

int main()

{
float cm, ft;
float result;


printf("Enter length in centimeter (cm.): ");
scanf("%f", &cm);

result = (cm * 0.0328084);

printf("%f cm. is %f ft. when you convert to feet.",cm,result);


return 0;

}
okay sana to boss kaso kailangan naka function yung formula eh
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 9
    Replies
  • 477
    Views
  • 3
    Participants
Last reply from:
PHC Go Youn Jung

Trending Topics

Online now

Members online
914
Guests online
1,509
Total visitors
2,423

Forum statistics

Threads
2,292,830
Posts
29,079,710
Members
1,209,533
Latest member
dunia_s3m3ntara
Back
Top