Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
blue point
//gcc 5.4.0 #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }https://play.google.com/store/apps/details?id=vrpatel0018.cprograms /*program to calculate area of triangle using function*/ #include<stdio.h> void triangle(); //this is function declaration int main() { triangle(); //this is function call } void triangle(){ //this is function definition int base,height; float area; printf("\nAccept base "); scanf("%d",&base); printf("\nAccept height "); scanf("%d",&height); area=0.5*base*height; printf("\n Area of triangle = %f",area); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
C(gcc) Local Time and math.h Example
Lab6 v1.0 Sin,cos,tan,cot
Struct
150108_recursividadFactorial
summing long int
Humko
fibonacci 1
A_141121_mayorMenor
19_1_7
implicit parameter type
Please log in to post a comment.