This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
float x,y,z; | |
printf("enter the three angles:"); | |
scanf("%f%f%f",&x,&y,&z); | |
if(x+y+z<=180) | |
printf("triangle is valid"); | |
else | |
printf("triangle is not valid"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int n; | |
printf("enter the number:"); | |
scanf("%d",&n); | |
printf("unit place:%d",n%10); | |
printf("\nten's place:%d",(n/10)%10); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int p,n,i,x; | |
p=1; | |
printf("enter value of X:"); | |
scanf("%d",&x); | |
printf("enter value of N:"); | |
scanf("%d",&n); | |
for(i=1;i<=n;i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int n,i,x; | |
printf("enter number range:"); | |
scanf("%d",&n);printf("number to be excluded:"); | |
scanf("%d",&x); | |
printf("numbers after exclusion:"); | |
for(i=1;i<=n;i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int i,x; | |
printf("enter :"); | |
scanf("%d",&x); | |
for(i=1;i<=10;i++) | |
{ | |
printf("%d*%d=%d\n",x,i,x*i); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
float n,a[100]; | |
int i; | |
printf("enter the number of students:"); | |
scanf("%f",&n); | |
printf("enter the marks of students:"); | |
for(i=0;i<n;i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int i,n,s; | |
s=0; | |
printf("enter the range:"); | |
scanf("%d",&n); | |
for(i=1;i<=n;i++) | |
{ | |
printf("(%d*%d)",i,i+1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int c, first, last, middle, n, search, array[100]; | |
printf("Enter number of elements\n"); | |
scanf("%d",&n); | |
printf("Enter %d integers\n", n); | |
for (c = 0; c < n; c++) | |
{ | |
scanf("%d",&array[c]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
double n,sum=0,i; | |
printf("Please Give The Value of N: "); | |
scanf("%lf",&n); | |
for(i=1;i<=n;i=i+2) | |
{ | |
sum = sum + (1/i); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int a[100],p[100],ne[100],i,j,n,k,m,f1,f2; | |
k=0; | |
m=0; | |
f1=0; | |
f2=0; | |
printf("enter the number of numbers:"); | |
scanf("%d",&n); |
NewerOlder