pod ser k eu consiga ajudar!
PEACE
Não informado
will09 hasn't added any friends yet.
01/11/2005, 12:22
01/11/2005, 10:54
01/11/2005, 10:50
#include <stdio.h>
#include <conio.h>
main()
{
textcolor(4);
clrscr();
int i;
for(i=1;i<=20;i++)
putchar('*');
putchar('\n');
puts("numeros entre 1 e 5");
for(i=1;i<=20;i++)
putchar('*');
putchar('\n');
for(i=1;i<=5;i++)
printf("%d\n",i);
for(i=1;i<=20;i++)
putchar('*');
putchar('\n');
scanf("%d");
}01/11/2005, 10:44
01/11/2005, 10:39
/*
* Created by SharpDevelop.
* User: Jorge «wiLL» Colaco
* Date: 01-11-2005
* Time: 13:28
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
/*int juro, valor, total;
Console.WriteLine("Programa de calculo de Juro");
Console.WriteLine();
Console.Write("Valor R$ ");
valor = Int32.Parse(Console.ReadLine());
Console.Write("Taxa de Juro: ");
juro = Int32.Parse(Console.ReadLine());
Console.Write("Valor Total R$ ");
Console.WriteLine(total = valor +(valor/100)*juro);*/
using System;
class juro
{
static void Main()
{
int valor;
decimal juro=0m;
decimal total=0m;
Console.WriteLine("\t\tPROGRAMA PARA CALCULO DE JURO\n\n");
Console.WriteLine("Digite o valor");
valor = int.Parse(Console.ReadLine());
Console.WriteLine("Digite a taxa de juro");
juro = decimal.Parse(Console.ReadLine());
total = valor+(valor/100)*juro;
Console.WriteLine("O valor total é de {0}",total);
Console.Read();
}
}
Community Forum Software by IP.Board
Licensed to: Webmasters Online

Postagens