Monday, October 19, 2020

How to find given percent of the given number in c

#include <stdio.h>

int main() {

    float n, p;

    printf("Enter a number and percentage:");

    scanf("%f%f", &n, &p);

    printf("Number and percent of the number is %.2f and %.2f", n, n*(p/100));

    return 0;

}

No comments:

Post a Comment

I Was Already Practicing Scrum Without Realizing It ❤️ | My CSM Journey 🚀

  https://youtube.com/shorts/26z3QNQSyc0 Hi. So uh as you may know that I'm Adita Johan who is working as a scrum master as part of the ...