/*WAP to Use of const keyword */
#include<stdio.h> #include<conio.h> main( ) { float r, a ; const float pi = 3.14 ; printf ( "\nEnter radius of circle " ) ; scanf ( "%f", &r ) ; a = pi * r * r ; printf ( "\nArea of circle = %f", a ) ; }
there is some good c ,java, sql and vb6 programs,Windows tricks, sms shorthand etc
#include<stdio.h> #include<conio.h> main( ) { float r, a ; const float pi = 3.14 ; printf ( "\nEnter radius of circle " ) ; scanf ( "%f", &r ) ; a = pi * r * r ; printf ( "\nArea of circle = %f", a ) ; }
No comments:
Post a Comment