x

Learn Programming Languages

Main menu

Skip to content
  • Home
  • Categories
    • Arrays
    • Assembly
    • C Language
      • Area Programs
      • Array
        • 1-D Array
        • 2-D Array
      • File Handling
      • Function
      • Graphics
      • If-Else
      • Logical Programs
      • Loops
        • Do-While Loops
        • For Loops
        • Nested For Loops
        • Nested Loops
      • Mathematical Programs in C.
      • Mathematical Programs.
      • Simple Programs.
    • C++
    • D.S Programs
    • New
    • OOP(C++)
    • Overloading
  • Ques & Ans
  • About Us
  • Contact Us

Category Archives: C++

C++

For Loops

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

For Loops

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

For Loops

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ᴺ

For Loops

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.

loops

Write a program to print the fibonacci series till a given number in c++.

Untitled-1 copy
Mathematical Programs

Write a program that input the days and out put the years months and days.

Input Output

Write a program to swap two numbers without using third variable.

loops, While Loops

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.

Pointers

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);

Pointers

Use pointer to const to display an array of non constant values of type double ?

Page 1 of 3123

Categories

Join Us On Facebook

Also see these Programs…

  • 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 ?
  • Use pointer to const to display an array of constant values of type double
  • Take an int array of size 5 with different integer values. Now refer the pointer to array and then use increment and decrement operators on pointer to display contents of array ?
  • Take an int array of size 5 with different integer values. Now refer the pointer to array and then take the address of each element of array and then display the content of that element through pointer ?

Posts viewed in last 24 hours

Sorry. No data so far.

Web Traffic

Pages

Pages|Hits |Unique

  • Last 24 hours: 0
  • Last 7 days: 0
  • Last 30 days: 0
  • Online now: 0
© Learn Programming Languages