Algorithme du ppmc - Page 2
Résolu
Précédent
- 1
- 2
bonjour je veux vous questionne comment je peux ecrire un algorithme qui definie un carre comment on peut definie wun carre dans un algorithme
merci pour votre services et votre aide merci :)
a bientot
merci pour votre services et votre aide merci :)
a bientot
merci t'es vraiment gentil pour me repondre mais moi je vx la reponse avec tant qu ou bien si pparce que en n'as pas encore etudier ce que tu m'avait donnée
voila mon prog de PGCD mais il y'a un prob et je sais pas où .. pouvez vous m'aidez svp
#include<stdio.h>
#include<stdlib.h>
main()
{
int a,b,PGCD;
printf("donnez deux entiers non nuls");
scanf("%d%d",&a,&b);
{
if(a>0 && b>0);
{
while (a<b || a>b);
do
{
if(a>b) {printf("a= a-b");}
else { printf("b=b-a");}
printf ("PGCD = ",a);
system("pause");
}
#include<stdio.h>
#include<stdlib.h>
main()
{
int a,b,PGCD;
printf("donnez deux entiers non nuls");
scanf("%d%d",&a,&b);
{
if(a>0 && b>0);
{
while (a<b || a>b);
do
{
if(a>b) {printf("a= a-b");}
else { printf("b=b-a");}
printf ("PGCD = ",a);
system("pause");
}
Précédent
- 1
- 2