Starter Tutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.
Home » Programming » C Programming » Programs » Page 6

C program to print a pattern of numbers

Suryateja Pericherla Categories: Patterns. No Comments on C program to print a pattern of numbers

In this article we will learn to implement a C program to print a pattern of numbers. A C program is given below for printing a numbers pattern.   Given starting number of a pattern and value of n, print the pattern as given below   If starting value = 3 and n = 4 then […]

Read the rest of this entry »

C program to swap the contents and indexes in an array

Suryateja Pericherla Categories: Arrays. 3 Comments on C program to swap the contents and indexes in an array

In this article we will learn to implement a C program to swap the contents and indexes in an array. A C program is provided below for swapping the array element with the corresponding array index number.   Given an array with size n and its contents are from 0 to n-1. Swap the index […]

Read the rest of this entry »

C program to print a pattern

Suryateja Pericherla Categories: Patterns. No Comments on C program to print a pattern

In this article we will learn to implement a C program to print a pattern. The following C program prints the below pattern for n = 4. 1*2*3*4*17*18*19*20 5*6*7*14*15*16 8*9*12*13 10*11   The program is as follows: #include <stdio.h> #include <conio.h> int main() { int n = 4; int lstart = 1; int rstart = […]

Read the rest of this entry »
Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory