Stay connected

17,477FansLike
1,826FollowersFollow
14,200SubscribersSubscribe
- Advertisement -

Latest article

Program to largest of three numbers

Program to find largest of three numbers

#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("Enter three numbersn"); scanf("%d%d%d",&a,&b,&c); if((a>b)&&(b>c)) /* use of logical &&, which gives true...
Program to finding the roots of quadratic equation

Program to finding the roots of quadratic equation

#include<stdio.h> #include<conio.h> #include<conio.h> void main() { float a,b,c,d,root1,root2; clrscr(); printf("Enter a b c n"); scanf("%f%f%f",&a,&b,&c); d=b*b-4*a*c; /* finding determinant */ ...
Program for checking a number is positive negative or zero

Program to check a number is positive negative or zero

#include<stdio.h> #include<conio.h> void main() { int a; clrscr(); printf("Enter a numbern"); scanF("%d",&a); if(a>0) printf("n positive number n"); ...