Monday, October 19, 2020

c program to find 20% of a number

#include <stdio.h>

int main() {

    float n;

    printf("Enter a number:");

    scanf("%f", &n);

    printf("Answer is %.2f", n*0.20);

    return 0;

}

No comments:

Post a Comment

Self-Respect vs. Ego ❤️ | Learning When to Give, Let Go & Choose Solitude ✨

  https://youtube.com/shorts/1GJpFnKyU88 So, I think I learned the difference between the self-respect and the ego in terms of making effort...