Programming Language

Problem 8.1

PROBLEM 8.1 Write a function to calculate the factorial value of any integer entered through the keyboard. */  #include<stdio.h> int fact(int)…

Exercise 7[C],Let Us C Solution

Exercise 7[C] Write program to find the grace marks for a student using switch. The user should enter the class obtained by the student and the nu…

Problem 7.1,Let Us C Solution

Write a menu driven program which has following options: 1.Factorial of a number 2.Prime or not 3.Odd or even 4.Exit Once a menu item is select…

Exercise[6B(i)]LET us c solution

Exercise[6B(i)] Write a program to produce the following output: 1 2 3 4 5 6 …

Exercise[6B(h)],Let Us C Solution

Exercise[6B(h)] Write a program to print 24 hours of day with suitable suffixes like AM,PM,Noon and Midnight. */ #include<stdio.h>…

Exercise[6B(g)],Let Us C Solution

Exercise[6B(g)] Ramanujan number is the smallest number that can be expressed as sum of two cubes in two different ways.Write a program to print …

Exercise[6B(f)

Exercise[6B(f)] Population of a town today is 100000.The population hd increased steadily at the rate of 10% per year for last 10 years.Write a p…

Exercise[6B(e),Let Us C Solution

Exercise[6B(e)] Write a program to generate all Pythagorean Triplets with side length less than or equal to 30. */ #include<stdio.h> …

Exercise[6B(d)], Let Us C Solution

Exercise[6B(d)] The natural logarithm can be approximated by the following series. x-1/x+1/2(x-1/x)^2+1/2(x-1/x)^3+1/2(x-1/x)^4+... If x is input t…

Exercise[6B(c)], LET Us C Solution

Exercise[6B(c)] When interest compunds q times per year at an annual rate of r% for n years,the principle p compounds to an amount a as per the fol…

Exercise[6B(b),LET US C SOLUTION

Exercise[6B(b)] According to a study,the approximate level of intelligence of person can be calculated using the following formula: i=2+(y+0.5x) Wr…

Exercise 6 [B(a)] LET US C SOLUTION

Exercise [B(a)] Write a program to print the multiplication table of the number entered by the user.The table should get displayed in the followin…

Problem 6.3 LET US C SOLUTION

PROBLEM 6.3 Write a program to generate all combinations of 1,2 and 3 using for loop. */ #include<stdio.h> int main() { int i=1,j=1,k=1; …

Problem 6.2 LET US C SOLUTION

/* PROBLEM 6.2 Write a program to add first seven terms of the following series using a for loop. 1/1!+2/2!+3/3!+.... */ #include<stdio…

Let Us C Solution

PROBLEM 6.1 Write a program to print all prime numbers from 1 to 300. */ #include<stdio.h> int main() { int i,n=1; printf("\nPrime nu…

Let Us C Solution

Write a program to find the range of a set of numbers entered through the keyboard,Range is the difference between the smallest and biggest number…

Let Us C Solution

EXERCISE [B] (e) Write a program to receive an integer and find its octal equivalent. (Hint: To obtain octal equivalent to an integer,divide it con…

Gross Salary Example|| Basic Program Of C

include<stdio.h> int main() { int gs,bs,da,ta; // gs=Gross salary,bs=Basic salary,da=Dearness allowance,ta=Total allowance printf("En…

Find The Area Of Circle

include<stdio.h> #define PI 3.14 int main() { float r,a; printf("Enter the radius:\n"); scanf("%f",&r); a=PI*r*r;…

Find The Square Root Of Any Number

#include<stdio.h> int main() { int num; printf("Enter the any number:"); scanf("%d",&num); printf("Square ro…

Subscribe with Gmail


Premium By Raushan Design