Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Click To Follow
World Economic Forum, the Business Round Table and the Science Visiting Council
for the acclaimed PBS science program, NOVA.
Envoi stewardardship
we began purchasing meaningful amounts of renewable energy for several facilities in
India. 12% of our global energy consumption is now sourced from wind and biomass.
And our "paperless offices" program has made great strides in reducing paper usage
across our operations worldwide.
Rapid onboarding
Metered pricing
Lower TCO
Ecosystem extensibility
Configurable
Scalable
Secure and compliant
Powered by Cloud360
Products and platforms
assetSERV
ClaimSphere HEDIS
Cloud360
Cognizant S3P
fastest
GeoLocus
Human Capital Management
LifeEngage
Mobile Risk Engineering Solution
OptimaWrite
OrderServ
Security Management as a Service
SKUView
SmartTrials
targetSERV
TruMobi
WellSERV PHM
WorkPort
Zero Deviation Life Cycle
Services
Analytics
Application Services
Business Process Services
Cloud
Cognizant Digital Works
Consulting
Customer Relationship Management
Engineering & Manufacturing Solutions
Enterprise Risk & Security Solutions
Interactive
IT Infrastructure Services
Mobility
Portals & Content Management
Quality Engineering & Assurance
Social
Supply Chain Managemt
palindrome
ain()
{
int n, reverse = 0, temp;
printf("Enter a number to check if it is a palindrome or not\n");
scanf("%d",&n);
temp = n;
while( temp != 0 )
{
reverse = reverse * 10;
reverse = reverse + temp%10;
temp = temp/10;
}
if ( n == reverse )
printf("%d is a palindrome number.\n", n);
else
printf("%d is not a palindrome number.\n", n);
return 0;
int main()
{
char a[100], b[100];
printf("Enter the string to check if it is a palindrome\n");
gets(a);
strcpy(b,a);
strrev(b);
if( strcmp(a,b) == 0 )
printf("Entered string is a palindrome.\n");
else
printf("Entered string is not a palindrome.\n");
return 0;
star pattern
nt main()
{
int row, c, n, temp;
printf("Enter the number of rows in pyramid of stars you wish to see ");
scanf("%d",&n);
temp = n;
for ( row = 1 ; row <= n ; row++ )
{
for ( c = 1 ; c < temp ; c++ )
printf(" ");
temp--;
for ( c = 1 ; c <= 2*row - 1 ; c++ )
printf("*");
}
printf("\n");
return 0;
*
***
*****
*******
*********
*
*A*
*A*A*
*A*A*A*
main()
{
int n, c, k, space, count = 1;
printf("Enter number of rows\n");
scanf("%d",&n);
space = n;
for ( c = 1 ; c <= n ; c++)
{
for( k = 1 ; k < space ; k++)
printf(" ");
for ( k = 1 ; k <= c ; k++)
{
printf("*");
if ( c > 1 && count < c)
{
printf("A");
count++;
}
}
printf("\n");
space--;
count = 1;
}
return 0;
}
1
232
34543
4567654
567898765
main()
{
int n, c, d, num = 1, space;
scanf("%d",&n);
space = n - 1;
for ( d = 1 ; d <= n ; d++ )
{
num = d;
for ( c = 1 ; c <= space ; c++ )
printf(" ");
space--;
for ( c = 1 ; c <= d ; c++ )
{
printf("%d", num);
num++;
}
num--;
num--;
for ( c = 1 ; c < d ; c++)
{
printf("%d", num);
num--;
}
printf("\n");
}
return 0;
}
For example 371 is an armstrong number as 33 + 73 + 13 = 371. Some other armstrong numbers
are: 0, 1, 153, 370, 407.
Fibonacci series
int main()
{
int n, first = 0, second = 1, next, c;
printf("Enter the number of terms\n");
scanf("%d",&n);
printf("First %d terms of Fibonacci series are :-\n",n);
for ( c = 0 ; c < n ; c++ )
{
if ( c <= 1 )
next = c;
else
{
next = first + second;
first = second;
second = next;
}
printf("%d\n",next);
}
return 0;
}
Binary search
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]);
printf("Enter value to find\n");
scanf("%d",&search);
first = 0;
last = n - 1;
middle = (first+last)/2;
while( first <= last )
{
if ( array[middle] < search )
first = middle + 1;
else if ( array[middle] == search )
{
( n - 1 ); c++)
< n - c - 1; d++)
> array[d+1]) /* For decreasing order use < */
= array[d];
= array[d+1];
= swap;
int main()
{
int n, array[1000], c, d, t;
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]);
}
for (c = 1 ; c <= n - 1; c++) {
d = c;
while ( d > 0 && array[d] < array[d-1]) {
t
= array[d];
array[d]
= array[d-1];
array[d-1] = t;
}
d--;
}
printf("Sorted list in ascending order:\n");
for (c = 0; c <= n - 1; c++) {
printf("%d\n", array[c]);
}
}
return 0;
1
11
121
1331
Pascal triangle in c
#include <stdio.h>
long factorial(int);
int main()
{
int i, n, c;
printf("Enter the number of rows you wish to see in pascal triangle\n");
scanf("%d",&n);
printf("\n");
return 0;
}
long factorial(int n)
{
int c;
long result = 1;
for (c = 1; c <= n; c++)
result = result*c;
}
return result;
Sariska
The reserve was declared a wildlife sanctuary in 1958 and came under the "Project Tiger" as a Sariska
tiger reserve in 1979.
Travel to Sariska and you will feel the centuries old history of the place. The history of Sariska is as old as
5th century BC when it was mentioned in the Hindu sacred texts that the Pandavas took shelter in Sariksa
during the years of seclusion. Under the Mughul rule in the middle ages, the Knakwari Fort was used by
Aurangazeb to imprison his brother. During the 8th to 12th century. The rich residents of Sariska constructed
a number of temples in the region which still stand as symbols of the glorious past of Sariska. Maharaja Jai
Singh started the campaign of converting the region to a protected area in the 20th century which led to
Sariska being declare a wildlife sanctuary by the Government in 1958.In 1979, It became a part of the
prestigious Tiger project