Computer Science, asked by essa86780, 1 month ago

Write a program in C++ that asks the user to enter 10 integers using loops and multiplies each number times 10 and display the results

Answers

Answered by devarchanc
0

C++ Programming

Question:

Write a program in C++ that asks the user to enter 10 integers using loops and multiplies each number with 10 and display the results.

Explanation:

#include <stdio.h>

int main() {

   int i,a[10],b[10];

   printf("Enter 10 numbers");

   for(i=0;i<10;i++)

   {

   scanf("%d",&a[i]);

   b[i]=a[i]*10;

   }

   printf("Multiplied integers are");

   for(i=0;i<10;i++)

   {

       printf("%d \n",b[i]);

   }

   return 0;

}

Similar questions