Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- void main(){
- int N , i;
- printf("Entrez un nombre N : ");
- scanf("%d",&N);
- for(i=1;i<10000;i++){
- if(pow(2,i)>N){
- printf("\nLa puissance de 2 qui depasse %d est %d est le resultat c est %d.\n",N,i,pow(2,i));
- break;
- }
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment