Hello there, This is CoderPradip here, and i am here to share you the way to find the area of a circle. So let’s check the code #include <stdio.h> #include <conio.h> #define PI 3.141 int main(){ float radius, area; printf(“Enter radius of circle\n”); scanf(“%f”, &radius); area = PI*radius*radius; printf(“Area of circle : %0.4f\n”, area); getch(); …
C Programming
Write a Program to Add, Subtract, Multiply and Divide in C
I am not gonna Describe this Program because it is the easiest one !! #include <stdio.h> int main() { int first, second, add, subtract, multiply; float divide; printf(“Enter two integers\n”); scanf(“%d%d”, &first, &second); add = first + second; subtract = first – second; multiply = first * second; divide = first / second; printf(“Sum = …
Write a program to find sum of two numbers in C
This is a simple program to find out the sum of two numbers in C Program. Hope it will help you! //write a program to find sum of two numbers #include<stdio.h> #include<conio.h> void main(){ int a,b,c; //clrscr(); printf(“Enter Two Values”); scanf(“%d%d”,&a,&b); c=a+b; printf(“the sum of a and b is %d”,c); }
Write a Program to check the greatest number in C Programming
Hello, all Here i have shared you the way to find the greatest number among two numbers. so here is the code #include<stdio.h> void main(){ int a,b; printf(“Enter Two Numbers”); scanf(“%d%d”,&a,&b); if(a>b){ printf(“%d is grater than %d”,a,b); }else{ printf(“%d is grater than %d”,b,a); } } if you are happy with this post feel free …