Dev C++
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Računanje obima kruga uz pomoć konstante Pi

Go down

Računanje obima kruga uz pomoć konstante Pi Empty Računanje obima kruga uz pomoć konstante Pi

Post  Don Corleone Wed Apr 13, 2011 10:40 pm


#include <stdio.h>
#include <conio.h>

#define PI 3.145

int main(){

int r=5; //cm
float obim;
obim=2*r*PI;
printf("obim=%f cm",obim);
getch();

}
Don Corleone
Don Corleone
Admin

Posts : 148
Join date : 2009-10-28
Age : 31
Location : Sombor - Serbia

https://programing.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum