10 nob input Display Prime or composite.
10 nob input Display Prime or composite.

#include<stdio.h> int main() { int i,n[10],c=0; printf ("Enter a number \n"); for (i=0;i<=9;i++) scanf ("%d",&n[i]); for (i=1;i<=n;i++) { if(n[i]%i==0) c=c+1; } if (c==2) printf ("The number is PRIME&quo...

Read more »
Jan 14, 2017

 Input data of 10 Student from user & print Minimum marks. Input data of 10 Student from user & print Minimum marks.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46...

Read more »
Jan 13, 2017


 Input data of 10 Employ from user & print Minimum pay of Employ
Input data of 10 Employ from user & print Minimum pay of Employ

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 #include<stdio.h> #include<conio.h> #include<string.h> struct Emp { int empid; char name[15]; float salary; }; int main() { ...

Read more »
Jan 13, 2017

 Input data of 10 Doctor from user & print Minimum pay of Doctor. Input data of 10 Doctor from user & print Minimum pay of Doctor.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46...

Read more »
Jan 13, 2017

Input data of 10 book from user & print Minimum price book data. Input data of 10 book from user & print Minimum price book data.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46...

Read more »
Jan 13, 2017


Input four digits nob & print sum of 1st & last digit.
Input four digits nob & print sum of 1st & last digit.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #include<stdio.h> main() { int num,sum,a,b,c,d,d1,d2,d3,d4; printf("Enter any four digits number:"); scanf("%d",&num); a=num/10; d4=num%10; b=a/10; d3=a%10; c=b/10; d2=b%10; d=c/10; d1=c%10; su...

Read more »
Jan 13, 2017

A program input five digit nob and print sum of its digits. A program input five digit nob and print sum of its digits.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include<stdio.h> main() { int num,sum,a,b,c,d,e,d1,d2,d3,d...

Read more »
Jan 13, 2017


 Print Area & perimeter of Triangle & Area & circumference of the circle.
Print Area & perimeter of Triangle & Area & circumference of the circle.

#include<stdio.h> main() { float l,b,r,p,c,A; printf("Enter the lenght of tringle=\n"); scanf("%f",&l); printf("Enter the breath of tringle=\n"); scanf("%f",&b); printf("Enter the radius=\n"); scanf("%f",&r); A=l...

Read more »
Jan 13, 2017
 

Protected

Protected by Copyscape
 
Learn Programming © 2017. All Rights Reserved. Shared by WpCoderX
Top