.

Sunday, September 15, 2013

Engineering

1. hold open a C political broadcast to find the plus of even numbers ranging from 0 to 9. # take <stdio.h> int main() { int n1, n2, i; int matrimony = 0; n1 = 0; n2 = 9; for (i = n1; i <= n2; i++) { if (i % 2 == 0) { fondness = sum + i; } } printf(sum = %d, sum); apply 0; } 2. spare a C program to find the total number of students with put out and perish grades in a class of 35. # allow <stdio.h> int main() { int run off=0, loss = 0, i; char home run[4]; for (i = 1; i <= 35; i++) { if ( Grade == Pass) Pass = Pass +1; else Fail = Fail +1; } printf( sum up of students with Pass grades = %d, Pass); printf(Number of students with Fail grades = %d, Fail); return 0; } 3. Write a C progra m implementing function to find factorial of user scuttlebutt number. #include<stdio.h> desire factorial(int);   main() { int number; immense fact = 1;   printf(Enter a number to orchestrate its factorial); scanf(%d,&number);   printf(Factorial of %d!
Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.
= %ld, number, factorial(number)); return 0; }   long factorial(int n) { int c; long go forth = 1;   for( c = 1 ; c <= n ; c++ ) result = result*c;   return ( result ); } 4. Write a C program to determine a Palindrome #include <stdio.h> #include < mountain chain.h>   main() { char a[100], b[100];   pri ntf(Enter the string to ruin if it is a pal! indrome); gets(a);   strcpy(b,a); strrev(b);   if( strcmp(a,b) == 0 ) printf(Entered string is a palindrome.); else printf(Entered string is not a palindrome.);   return 0; }If you regard to get a full essay, order it on our website: OrderEssay.net

If you want to get a full information about our service, visit our page: How it works.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.