max and min value program
#include"stdio.h"
main()
{
int val, max, min, i;
|
what is output ,, val = 316 :
|
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
|
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;
|
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
|
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()
{
|
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()
{
|
what is the output of : explain your answer
#include"stdio.h"
main()
{
int i;
char a, b='A', c=b+3;
|
program to calculate the area of a square , triangle , circle ,, using :
1- switch
2- if-else
switch
#include"stdio.h"
main()
|
write program print out the factorial of n integer values , the program passes each integers value to a function called factorial that calculates the fact of an integer value
#include"stdio.h"
int factorial(int f);
main()
|
|