Powered By Blogger

29 mar 2012


Generar 5,10,15,20,25,30,35....n
Código:
#include<stdio.h>
#include<conio.h>
int main ()
{
 int n, c=1, serie=5;
 printf("Cantidad de terminos: ");
 scanf("%d",&n);
 while(c<=n)
 {
  printf("%d,",serie);
  serie+=5; c++;
 }
 getch();
}

1 comentario:

  1. 1xBet korean - Sports Betting | Free Bets | Best Odds | T&Cs
    Bet 1xbet is a sports betting site that is part of the Asianbookie and has 1xbet a rich history of producing high quality sports betting.

    ResponderEliminar