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

Trending Topics

Online now

Members online
1,000
Guests online
2,956
Total visitors
3,956

Forum statistics

Threads
2,331,598
Posts
29,259,284
Members
1,147,720
Latest member
gewad
Back
Top