logo

Crowdly

Browser

Add to Chrome

langage C

Looking for langage C test answers and solutions? Browse our comprehensive collection of verified answers for langage C at moodle.insa-toulouse.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

#include <stdio.h>

int main()

{

  int age = 20;

  for (; age>0; age--)

  {

    /* A COMPLETER ICI */   

      printf("%d ",age);

  }

 

  return 0;

}

Completer ce programme pour qu'il affiche l'age du prof (17 ans) et qu'il se termine correctement.

0%
0%
0%
0%
View this question
#include <stdio.h>

int main()

{

  int age = 20;

  for (age = -age-1; age<0; age=-age)

  {

    printf("%d ",age);

  }

 

  return 0;

}

Que fait ce programme?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int i,j;

  j=0; i=0;

  while (i!=3) {

    j+=i;

    i++;

  }

  printf("“%d \n"”,i);

  return (0);

}

Que va afficher le programme?

View this question
#include <stdio.h>

int main()

{

  int age = 20;

  for (age = age-1; age>0; age--)

  {

    printf("%d ",age);

  }

 

  return 0;

}

Que fait ce programme?

View this question
#include <stdio.h>

int main(void)

{

  int i;

  i = 2;

  if (i > 2)

    printf("i > 2\n");

  else if (i == 2)

    printf("2e cas\n");

    printf("i == 2\n");

  else

    printf("i < 2\n");

  return 0;

}

Que va afficher le programme ?

View this question
#include <stdio.h>

int main(void)

{

  int tab[5];

  int i;

  for (i=0;i<5;i++){

    tab[i]=0;

    if (i>0){

      tab[i-1]=i;

      tab[i]+=tab[i-1];

    }

    printf("%d ",tab[i]);

  }

  printf("\n");

  return(0);

}

Que va afficher le programme ?

Question quelle(-s) sera (seront) la (les) sortie(-s) possible(-s) de ce programme

View this question
#include <stdio.h>

int main(void)

{

  int a=8;

  int i;

  for (i=0;i<3;i++){

    a=a<<1;

  }

  printf("%d",a);

  return(0);

}

que va afficher le programme ci-dessus?

View this question
#include <stdio.h>

int main(void)

{

  int i;

  i = 2;

  if (i > 2)

    printf("1er cas\n");

    printf("i > 2\n");

  else if (i == 2)

    printf("2e cas\n");

    printf("i == 2\n");

  else

    printf("3e cas\n");

    printf("i < 2\n");

  return 0;

}

Que va afficher le programme ?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int i,j;

  for (i=0;i<3;i++){

    for (j=1;j<=2;j++){

      printf("%d %d ", i, j);

    }

  }

  printf("\n");

  return 0;

}

View this question
#include <stdio.h>

int main()

{

      int x;

      int y;

      int z;

      x=3;

      y=2;

      if(x>5)

      {

          x=x-5;

          y=1;

      }

      z=x*y;

      printf("%d \n",z);

      return 0;

}

Que va afficher le programme ?

0%
0%
0%
0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.insa-toulouse.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome