[My site ]
Main » 2013 » December » 13
program to calculate sum of digits of positive integer number

#include"stdio.h"
main()
{
int i, x, sum=0;
printf("enter number : ");
Category: C Programming - 1 | Views: 553 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

 1+1=2
   1+2=3
     2+3=5
       3+5=8
         5+8=13

Category: C Programming - 1 | Views: 485 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program that reads a sequence of integers ,, when positive number many asterisks are to be printed ,, when negative number printed out numerically . no number will be greater than 99

#include"stdio.h"
main()
{
int i, n, val, j;
Category: C Programming - 1 | Views: 431 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

max and min value for n = ten times

#include"stdio.h"
main()
{
int n, val, max, min, i;
Category: C Programming - 1 | Views: 511 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

program to calculate the area of a square , triangle , circle ,, using :
1- switch
2- if-else
Category: C Programming - 1 | Views: 462 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

+++++++++++
+   +++   +
+  +++++  +
+ +++++++ +
+++++++++++

by while statement

Category: C Programming - 1 | Views: 455 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

correct

include stdio
main 
  i;j;val1;val2:int
  val1 == 0
  for(i<=,i==1,i=+2)
   {
      val2==1
... Read more »
Category: C Programming - 1 | Views: 444 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

what is the output of

#include"stdio.h"
main()
{
int i, j;
for(i=5;i>=1;i--){
Category: C Programming - 1 | Views: 488 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program to read the value of two integers and calculate the sum of squares of these numbers the program should use three function
1- sum of two num
2- square of value
3- sum of squares of two num

#include"stdio.h"
int sum(int a, int b);
Category: C Programming - 1 | Views: 440 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write program calculate
z = x^y(x!+y!)/(x!-y!)

#include"stdio.h"
float factorial(float k);
float power(float m, float n);
main()
{
Category: C Programming - 1 | Views: 536 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

max and min value program 

#include"stdio.h"
main()
{
int val, max, min, i;
Category: C Programming - 1 | Views: 397 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

what is output ,, val = 316 :

Category: C Programming - 1 | Views: 338 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program that reads a sequence of integers when a negative number is read that many asterisk are to print ,, when a positive number is read that the factorial of the number is to be printed

Category: C Programming - 1 | Views: 393 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program that reads value of x and compute the value of y from the following equation
y = -x + x^2 - x^3 + x^4 - ....... x^n

#include<stdio.h>
main()
{
int x, n, i, y=0, k=1;
Category: C Programming - 1 | Views: 343 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program to read the student's grade , and print out his status according to the following
grade <50
50>= grade <65
65>= grade <75
75>= grade <85
85>= grade <=100

1- if-else
Category: C Programming - 1 | Views: 434 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program using while statement and conditional operator to read n integer values and calculate
1- number and sum of negative values
2- number and sum of positive values

#include<stdio.h>
main()
{
int ... Read more »
Category: C Programming - 1 | Views: 360 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

write a program to add n terms of the following series :
y = 1 - 2/3^2 + 3/5^2 - 4/7^2 +5/9^2 - .......

#include"stdio.h"
float com(float x);
main()
{
Category: C Programming - 1 | Views: 410 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

what is the output of : explain your answer 

#include"stdio.h"
main()
{
int i;
char a, b='A', c=b+3;
Category: C Programming - 1 | Views: 377 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)

program to calculate the area of a square , triangle , circle ,, using :
1- switch
2- if-else

switch

#include"stdio.h"
main()
Category: C Programming - 1 | Views: 382 | Added by: ahansaary | Date: 2013-12-13 | Comments (0)