Skip to content

Instantly share code, notes, and snippets.

@valchaqui
Created November 17, 2015 10:57
Show Gist options
  • Save valchaqui/28e3e1c4c98737314192 to your computer and use it in GitHub Desktop.
Save valchaqui/28e3e1c4c98737314192 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(){
int num[20], k, porc;
printf("Entre com uma sequência de 20 números:");
for(k=1;k<=20;k++){
printf("%d.o numero", k);
scanf("%d", &num[k-1]);
porc=5*k;
printf("Porcentagem: %d porcento ", porc);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment