Okay here again I am sharing another program to find out the simple interest #include<stdio.h> void main() { int amount, rate, time, si; printf(“\nEnter Principal Amount : “); scanf(“%d”, &amount); printf(“\nEnter Rate of Interest : “); scanf(“%d”, &rate); printf(“\nEnter Period of Time : “); scanf(“%d”, &time); si = (amount * rate * time) / 100; …
Programming
You can find all the Posts related to Programming in this Category
Write a program to find the area of a Circle in C Programming
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(); …
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 …