Learn Programming Languages
Skip to content
Nested For Loops
Mathematical Programs in C.
Ques & Ans
Write a program that accepts an upper limit from the user and it should display the following series up-to the upper limit specified in a n variable. 1 2 3 0 5 6 7 0 9……………..n
Write a program that accepts an upper limit from the user and it should display the following series up-to the upper limit specified in a n variable. 1 3 9 27 81…………………n
Write a program that asks the user to input two numbers in two variables x and n. Now find and properly display the sum of following series. X+X²+X³…………………Xᴺ
Write a program using for loop to find the sum of the squares of the integers from 1 to n. Where n is a positive value entered by user.
Write a program to print the fibonacci series till a given number in c++.
Write a program that input the days and out put the years months and days.
Write a program to swap two numbers without using third variable.
If a 4 digits number is entered from keyboard, write a program that should subtract the last digit from the first digit and display the result.
Write a function that converts a lowercase string to upper case using pointers char phrase = ”we love pakistan”; Call of function will be void convertToUpperCase(char *ptr);
Use pointer to const to display an array of non constant values of type double ?
Page 1 of 3