Posts

Area of circle ( 3.14 *r*r) float

Image
Area of circle ( 3.14 *r*r ) Open TurboC++ file>>new coding#include<stdio.h>#include<conio.h>void main(){float r,area;clrscr();printf("entre the value of r :");scanf("%f",r); area=3.14*r*r;printf("Area=%f",area);getch();} Run Programme>>ctrl+f9
compile Programme>>alt+f9
output comes



for help

harshalbhamare02@gmail.com

Addition ( accepting value ) "" use of scanf ""

Image
Addition ( for accepting value) Open TurboC++ file>>new coding#include<stdio.h>#include<conio.h>void main(){int a,b,c;clrscr();printf("entre the value of a :");scanf("%d",&a);printf("entre the value of b : ");scanf("%d",&b);c=a+b;printf("the sum of  %d and %d is %d , a,b,c);getch();} Run Programme>>ctrl+f9
compile Programme>>alt+f9
output comes



for help

harshalbhamare02@gmail.com

Area of circle = 3.14*r*r

given: Area Of Circle= 3.14*r*rOpen TurboC++ >>file>> new Coding #include<stdio.h>
#include<conio.h>
{
            float r, area;
            clrscr();
            printf("Entre  The Value Of r :");
            scanf("%f",&r);
            area=3.14*r*r;
            printf("Area = %f ",area);
            getch();
} save the programme in .c extentionRun programme >>ctrl+f9 compile programme
>>alt+f9 output comes  >>Entre The Value Of r :

Division ( / ) float

Image
Division Open TurboC++ file>>new coding#include<stdio.h>#include<conio.h>void main(){float a,b,c;clrscr();a=456;b=12;c=a/b;printf("division=%f",c);getch();} Run Programme>>ctrl+f9
compile Programme>>alt+f9
output comes

for help

harshalbhamare02@gmail.com

Division ( / ) int

Image
Division Open TurboC++ file>>new coding#include<stdio.h>#include<conio.h>void main(){int a,b,c;clrscr();a=12;b=4;c=a/b;printf("division=%d",c);getch();} Run Programme>>ctrl+f9
compile Programme>>alt+f9
output comes

for help

harshalbhamare02@gmail.com

Multiplication ( * ) ( float )

Image
Multiplication Open TurboC++ file>>new coding#include<stdio.h>#include<conio.h>void main(){float a,b,c;clrscr();a=20.10;b=10.10;c=a*b;printf("multiplication=%f",c);getch();} Run Programme>>ctrl+f9
compile Programme>>alt+f9
output comes

for help

harshalbhamare02@gmail.com