Posts

Showing posts from August, 2019

how to stay safe on internet

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