# Geeksjobs  ## FACE Prep Jobs Board | Off-campus Drive Updates for 2020, 2019, 2018 [Geeksforjobs]

Heya all, welcome to Geeksforjobs Stay tuned to this page to know job updates. FACE Prep Jobs Board | Off-campus Drive Updates for 2020, 2019, 2018 Published on 08 Nov 2018 FACE Prep’s Jobs Board will provide regular updates on off-campus drive opportunities for 2020, 2019 (Freshers) & 2017 batches. Stay tuned to this page … ## This C program is to count the number of vowels, consonants, digits, white spaces & special characters in a given string.For example, string “code 21” will have 2 consonants(c,d),2 vowels(o,e), 2 digits(2,1), 1 whitespace and 1 special character(;).

c-program to find number of vowels,consonants,digits,spaces&special characters in a given string C #include<stdio.h> void main() { char str; int i,vowels=0,consonants=0,digits=0,spaces=0,specialCharacters=0; printf(“Enter a stringn”); gets(str); for(i=0;str[i]!=’’;i++) { if(str[i]==’a’ || str[i]==’e’ || str[i]==’i’ ||str[i]==’o’ || str[i]==’u’ || str[i]==’A’ ||str[i]==’E’ || str[i]==’I’ || str[i]==’O’ ||str[i]==’U’) { vowels++; } else if((str[i]>=’a’&& str[i]<=’z’) || (str[i]>=’A’&& str[i]<=’Z’)) { consonants++; } … ## This C program is to reverse a number.For example reverse of number 789 is 987.

c-program to reverse a number C #include<stdio.h> void main() { int n,reverse=0; printf(“Enter a numbern”); scanf(“%d”,&n); while(n!=0) { reverse=reverse*10+n%10; n=n/10; } printf(“Reversed number = %d”,reverse); } 1 2 3 4 5 6 7 8 9 10 11 12 13 #include<stdio.h>   void main() {     int n,reverse=0;     printf(“Enter a numbern”);     scanf(“%d”,&n);     while(n!=0)     {         reverse=reverse*10+n%10;         n=n/10; … ## This C program is to convert temperature from Fahrenheit to Celsius.For example 500F is 100C as 320F is 00C.

c-program to convert temperature from Fahrenheit to Celsius C #include<stdio.h> void main() { float celsius,fahrenheit; // Reads temperature in fahrenheit printf(“nEnter temperature in Fahrenheit:”); scanf(“%f”,&fahrenheit); // Fahrenheit to celsius conversion formula celsius=(fahrenheit – 32)*5/9; // Print the result printf(“nCelsius = %.3f”,celsius); //.3f means correct to 3 decimal places } 1 2 3 4 5 … ## This C program is to find fibonacci series upto a given range.Fibonacci series is a series in which each number is the sum of preceding two numbers.For Example fibonacci series upto n=7 will be 0,1,1,2,3,5.

c-program to find fibonacci series upto n terms C #include<stdio.h> void main() { int i,c=0,n; int a=0; int b=1; printf(“nEnter a number to generate fibonacci series upto nth termn”); scanf(“%d”,&n); printf(“Fibonacci series upto %d term:-n”,n); while(c<=n) { printf(“%d “,c); a=b; b=c; c=a+b; } } 1 2 3 4 5 6 7 8 9 10 … ## This C program is to find fibonacci series of first n terms.Fibonacci series is a series in which each number is the sum of preceding two numbers.For Example fibonacci series for first 7 terms will be 0,1,1,2,3,5,8.

c-program to find fibonacci series for first n terms C #include<stdio.h> void main() { int i,c=0,n; int a=0; int b=1; printf(“Enter a number to generate fibonacci series for first n termsn”); scanf(“%d”,&n); printf(“Fibonacci series for first %d terms:-n”,n); for(i=0;i<n;i++) { printf(“%d “,c); a=b; b=c; c=a+b; } } 1 2 3 4 5 6 7 … ## This C program is to generate first n armstrong numbers.For example if we want to generate first 2 armstrong numbers  then we get 153, 370 as the output.

c-program to generate first n armstrong numbers C #include<stdio.h> void main() { int n,copy=152,remainder,sum,x; printf(“Enter a numbern”); scanf(“%d”,&n); //starting copy from 152 as we know 153 is an armstron no printf(“Armstrong numbers aren”); while(n!=0) { copy++; x=copy; sum=0; //printf(“n2nd copy = %d “,copy); while(copy!=0) { remainder=copy%10; sum=sum+remainder*remainder*remainder; copy=copy/10; } if(sum==x) { printf(“n%d”,x); n–; } … ## This C program is to generate armstrong numbers from 1 to n.For Example generate armstrong numbers upto 200.

c-program to generate armstrong numbers from 1 to n  C #include<stdio.h> void main() { int n,copy=152,remainder,sum,x; printf(“Enter a numbern”); scanf(“%d”,&n); //starting copy from 152 as we know 153 is an armstron no printf(“Armstrong numbers aren”); while(copy<=n) { copy++; x=copy; sum=0; //printf(“n2nd copy = %d “,copy); while(copy!=0) { remainder=copy%10; sum=sum+remainder*remainder*remainder; copy=copy/10; } if(sum==x) { printf(“%dn”,x); … ## This C program is to check whether the given number is an armstrong number or not.An armstrong number is a number whose sum of cubes of digits is equal to the number itself.For example 153 is an armstrong number as

c-program to check whether the given number is an armstrong number or not C #include<stdio.h> void main() { int n,copy,remainder,sum=0; printf(“Enter a numbern”); scanf(“%d”,&n); copy=n; while(copy!=0) { remainder=copy%10; sum=sum+remainder*remainder*remainder; copy=copy/10; } if(sum==n) printf(“n%d is an Armstrong number”,n); else printf(“n%d is not an Armstrong number”,n); } 1 2 3 4 5 6 7 8 9 … ## This C program is used to generate first n prime numbers.Example first 4 prime nos would be 2,3,5,7.

c-program to generate first n prime numbers C #include<stdio.h> void main() { int i,n,p,count,flag; printf(“Enter the numbern”) ; scanf(“%d”,&n) ; printf(“First %d prime numbers are n”,n) ; p=2; i=1; while(i<=n) { flag=1; for(count=2;count<=p-1;count++) { if(p%count==0) //Will be true if p is not prime { flag=0; break; //Loop will terminate if p is not prime …