🔒 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
  • 487
    Views
  • 3
    Participants
Last reply from:
PHC Go Youn Jung

Trending Topics

Online now

Members online
1,210
Guests online
3,673
Total visitors
4,883

Forum statistics

Threads
2,308,342
Posts
29,184,605
Members
1,191,942
Latest member
the_jackkal
Back
Top