Exerc11_maiorq5menorq3.txt

  • Uploaded by: Erinaldo Rodrigues
  • 0
  • 0
  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Exerc11_maiorq5menorq3.txt as PDF for free.

More details

  • Words: 45
  • Pages: 1
#include <stdio.h> int main(){ int i, maior, menor; float nota[10]; for(i=0; i<10; i=i+1){ scanf("%f", ¬a[i]); } maior=0; for(i=0; i<10; i=i+1){ if(nota[i]>5){ maior=maior+1; } } menor=0; for(i=0; i<10; i=i+1){ if(nota[i]<3){ menor=menor+1; } } printf("maiores que 5: %d\n", maior); printf("menores que 3: %d\n", menor); }

return 0;

More Documents from "Erinaldo Rodrigues"