1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GenaCL600 [577]
3 years ago
14

Write a program in c language to generate following series :

Computers and Technology
2 answers:
dimaraw [331]3 years ago
8 0

Answer:

that is above the attachment

:)))

DedPeter [7]3 years ago
7 0

In this exercise we have to have knowledge in computational language in C to write the requested code.

The code is found in the attached image.

We can write the code in a simpler way like:

<em>#include<stdio.h></em>

<em>#include<conio.h></em>

<em>int main()</em>

<em>{</em>

<em>    int N, i;</em>

<em>    printf("Enter the value of N (limit): ");</em>

<em>    scanf("%d", &N);</em>

<em>    printf("\n");</em>

<em>    for(i=1; i<=N; i++)</em>

<em>    {</em>

<em>        if(i==N)</em>

<em>            printf("%d", i);</em>

<em>        else</em>

<em>            printf("%d,", i);</em>

<em>    }</em>

<em>    getch();</em>

<em>    return 0;</em>

<em>}</em>

See more about C language at brainly.com/question/19705654

You might be interested in
If you’re the victim of cyber bullying behavior, besides contacting your teacher or the school, where else can you go to find in
RideAnS [48]

parents

childline

ceop

family

3 0
3 years ago
Define a method named swapValues that takes an array of four integers as a parameter, swaps array elements at indices 0 and 1, a
Luba_88 [7]

The program is an illustration of arrays.

Arrays are used to hold multiple values.

The program in java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

   //This defines the method

public static int[] swapValues(int[] arr) {

   //This swaps the first and second array elements

       int temp = arr[0];

       arr[0] = arr[1];   arr[1] = temp;

   //This swaps the third and fourth array elements

       temp = arr[2];

       arr[2] = arr[3];   arr[3] = temp;

   //This returns the swapped array to main

       return arr;

}

//The main method begins here

   public static void main(String[] args) {

       //This creates a Scanner object

       Scanner input = new Scanner(System.in);

 //This declares an array of 4 elements

 int[] intArray = new int[4];

 //This gets input for the array

 for(int i = 0; i<4;i++){

     intArray[i] = input.nextInt();

 }

 //This calls the swapValues method

 intArray=swapValues(intArray);

 //This prints the swapped array

 for (int i = 0; i < 4; i++){

 System.out.print( intArray[i]+ " ");     }

}  

}

At the end of the program, the elements are swapped and printed.

Read more about similar programs at:

brainly.com/question/14017034

6 0
3 years ago
Question 1 (10 points)
lisabon 2012 [21]

Answer:

Find and replace header and footer

5 0
3 years ago
Is it possible to use keywords to search for themes on powerpoint
Oksana_A [137]
Yes, click CTRL + F at the same time and a small search bar will pop up on the top right of your screen
8 0
4 years ago
What is the main difference between Trademarks and Copyrights?
diamong [38]

Answer:

copyrights protect creative or intellectual works, and trademarks apply to commercial names, phrases, and logos

Explanation:

4 0
3 years ago
Other questions:
  • Zach follows the instructions that show him how to create a custom Web site in his school's learning management system. These st
    14·1 answer
  • What would happen if computers only had input peripherals and a CPU?
    13·1 answer
  • Jackson builders is constructing new homes in the Parkway subdivision.The company needs the logic for an application that ncalls
    13·1 answer
  • In Microsoft word you can access the ______ command from "mini toolbar"
    12·2 answers
  • Why might a government entity choose to offer some information and services online as in e-government
    8·2 answers
  • Create a function named first_a that uses a list comprehension. The function will take a single integer parameter n. Find every
    13·1 answer
  • Which of the following is the most abstract?
    13·2 answers
  • Python
    6·1 answer
  • Why is John Von Neumann to a remarkable name?<br>si​
    15·1 answer
  • A=4x^2.(x-2y)-20x.(2y-x)
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!