SOLUTION OF BASIC PROBLEM IN "C"

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(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.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…

Let us c solution

[B] (b) Write a program to print out all Armstrong numbers between 1 and 500.If sum of cubes of each digit of the numbers is equal to the numbe…

when interest compoundes q times per times per year at an annual rate of r% for n years,the principle P compounds to an amount a as per the followng formula a=p(1+r/q)^nq Write a program to read ten sets of p,n,r and q and calculate the corresponding as.*

/* #include<stdio.h> int main() { int i; while(i<=10) { printf("%d\n",i++,i); } return 0; } */ // write a program to genera…

If the marks obtained by a student in five different subjects are inputs through the keyword.Write a program to find out the aggregate marks and percentage marks obtained by the student.Assume that the maximum marks that can be obtained by a student in each subject is 100.

<<<...PROBLEM-1.3...>>> If the marks obtained by a student in  five different subjects are inputs through …

The distance between two cities(in km.)is input through the keyboard. Write a program to convert and print this distance in meters,feet, inches and centimeters.

<<<...PROBLEM 1.2...>>> The distance between two cities(in km.)is input through the keyboard. Write a program to convert and print…

BASIC PROBLEM OF C AND ITS SOLUTION CHAPTER1

</PROBLEMS> YOU CAN ALSO READ THIS POST PROBLEM 1.1 Ramesh's basic salary is input through the keyboard his dearness allowance is 40% of …

Subscribe with Gmail


Premium By Raushan Design