Search
 
SCRIPT & CODE EXAMPLE
 

CPP

cpp practice questions

#include<stdio.h>
int main()
{
	int i,a[10],max=0,min=0;
	printf("enter 10 integer");
	for(i=0;i<10;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<10;i++)
	{
		if(a[i]>max)
			max=max+a[i];
		if(a[i]<min)
			min=min+a[i];
	}
		printf("%d maximum ",max);
		printf("%d minimum ",min);
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ string to vector using delimiter 
Cpp :: how to adjust and delete memory in c, c++ 
Cpp :: convert string to wide string 
Cpp :: c++ array access operator 
Cpp :: inside information subtask 2 
Cpp :: days in a year c++ 
Cpp :: std::filesystem::path to std::string 
Cpp :: add integers 
Cpp :: c++ sigabrt 
Cpp :: c++ to c converter online 
Cpp :: convert c to C language 
Cpp :: convert preorder to postorder calculator 
Cpp :: c++ loop through an array 
Cpp :: c + + to c converter 
Cpp :: https://www.geeksforgeeks.org/a-program-to-check-if-strings-are-rotations-of-each-other/ 
Cpp :: c++ code 2d block 
Cpp :: c++ vs c# 
Cpp :: temporary variable ex c++ 
Cpp :: convert c++ program to c online 
Cpp :: c++ multiplication table rows and columns 
Cpp :: return value optimization example 
Cpp :: c++ to c converter online free 
Cpp :: c++ create vector of size 
Cpp :: c++ loop vector iterator 
Cpp :: how a function gives a pointer as parameter c++ 
Cpp :: assignment operators 
Cpp :: how to define range of numbers inside a if condition in c++ 
Cpp :: c++ switch case statement 
C :: How to install npm in alpine linux 
C :: octave dot operator 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =