Search
 
SCRIPT & CODE EXAMPLE
 

C

findtotalcurtain

#include <stdio.h>
int findTotalCurtains(int n, int arr[])
{
    int feet, total = 0;
    for(int i=0; i<n; i++)
    {
        feet = arr[i] / 12;
        total = total + feet;    
    }
    return total;
}
int main()
{
    int n;
    scanf("%d",&n);
    int array[n];
    for(int i=0; i<n; i++)
    {
        scanf("%d",&array[i]);
    }
    int result = findTotalCurtains(n, array);
    printf("%d",result);
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: check if a number is even and bigger than or equal to 16 using bitwise 
C :: reverse a number in c 
C :: how to find folders from a c program 
C :: instller acrobat ous ubuntu 
C :: reset c array to zero 
C :: hgggggggggggggggg 
C :: code wars responsable drinker 
C :: e sharm card jobkhozo.com 
C :: Parsing using strtok 
C :: arma 3 key pressed 
C :: unigine 
C :: c programming print pattern pyramid 
C :: UTC offset upper limit 
C :: Implement N-Queen Problem 
C :: data breach 
C :: get file ligne count c 
C :: tetris rotate shape 
C :: c Modulo 10^9+7 (1000000007) 
C :: lazer codechef 
C :: C static libraries (creating archive from object files) 
C :: reverse number in c 
C :: c pass two dimensional array to function 
C :: Happy New Year! 
C :: array length in c++ 
Dart :: How to change OutlinedButton border color? 
Dart :: flutter datetime to string 
Dart :: flutter snackbar shape 
Dart :: dart timer repeat 
Dart :: drawer corner radius flutter 
Dart :: dart command to stop program 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =